-
Infinete plane with grid in OpenGL & QT4
Hey
I Need a sample (very simple) to draw an pseudo infinite plane with a grid as seen in the image:

I'm starting to learn OpenGL in QT...
Tanks.
Mirko Gonzales
Last edited by Dark Photon; 02-17-2013 at 06:40 PM.
-
Senior Member
OpenGL Guru
Cheapest solution is to render that with a repeating texture map, and just draw a plane with the texture on it. Best thing is that you get GPU filtering for free, which should radically reduce the aliasing over what you see in this picture. In particular if you turn on anisotropic filtering and max it out.
-
Thank you very much for the reply. How do I determine the limits for cover the whole screen? Could you give me a simple example?
-
-
Senior Member
OpenGL Guru
It depends on the needs of your app. You can start with generating a big quad and centering it on the eyepoint at some constant elevation.
-
My project consists in plotting the path of a vehicle (represented by a 3D objet). The camera is always a constant distance and position on this. The plane is a pseudo infinite grid. I managed to upload a .Obj file and move. Only necessary to draw the pseudo infinite ground plane (grid). Help me... Please!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules