Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: Infinete plane with grid in OpenGL & QT4

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4

    Question 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 07:40 PM.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,126
    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.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4
    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?

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4

    Exclamation

    Any Example?

  5. #5
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,126
    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.

  6. #6
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4
    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
  •