Search code examples
openglmathgeometrycartesian-coordinates

How to draw a Cartesian plane via OpenGL?


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?


Solution

  • 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.