PDA

View Full Version : flat terrain



arung
05-14-2001, 12:52 AM
Hi,
I'd like to create unlimited flat terrain .. any suggestion- I am new to opengl..
Thank a lot

Teofuzz
05-14-2001, 01:02 AM
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

arung
05-14-2001, 01:11 AM
Thank tFz

Tomasz Zielinski
05-15-2001, 11:59 PM
It is good solution, BUT... Depending on distance between near and far clipping planes, one big quad could be insufficient, because texture can "wave" http://www.opengl.org/discussion_boards/ubb/smile.gif - especially on Voodoo... In this case, you can use eg. 4x4 quads.