View Full Version : flat terrain
05-13-2001, 11:52 PM
I'd like to create unlimited flat terrain .. any suggestion- I am new to opengl..
Thank a lot
05-14-2001, 12: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...
05-14-2001, 12:11 AM
05-15-2001, 10: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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.