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 4 of 4

Thread: flat terrain

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Australia
    Posts
    4

    flat terrain

    Hi,
    I'd like to create unlimited flat terrain .. any suggestion- I am new to opengl..
    Thank a lot
    nwarung

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Italy
    Posts
    126

    Re: flat terrain

    You can create a big quad that goes over the far clipping plane, without moving or rotating it (put a glLoadIdentity before drawing it), then move only the texture coords to simulate the movement, so you'll be sure to have the ground under your feet in every position.
    A huge quad affected by camera transformations will never be unlimited...
    tFz

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Australia
    Posts
    4

    Re: flat terrain

    Thank tFz
    nwarung

  4. #4
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Poland
    Posts
    6

    Re: flat terrain

    It is good solution, BUT... Depending on distance between near and far clipping planes, one big quad could be insufficient, because texture can "wave" - especially on Voodoo... In this case, you can use eg. 4x4 quads.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •