I need to draw a Cartesian plane (standard OXYZ), where i would construct planes from equations ax+by+cz+d=0 and some objects.

How can i do that via OpenGL? Anybody?

有帮助吗?

解决方案

You need to create triangle or quad. Calculate points in plane using your equation and from those points construct geometry.

For rendering geometry, look for some tutorials. There are plenty of them around.

其他提示

If I am interpreting your question correctly, you just want to draw the axes of the Cartesian planes xy, xz, yz.

You can achieve this very easily by drawing a non-solid cube (glutWireCube should do the job), such that its bottom-front-left corner is at (0,0,0) (or bottom-back-left corner, based on the direction of positive depth).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top