View Full Version : total beginner, need help!
09-24-2004, 07:38 AM
i've never really done any OpenGL at all, and i'm trying to draw a ground plane going from -10 to 10 in X and -10 to 10 in Z, with grid lines spaced 1 unit apart. How would i do this?
09-24-2004, 08:06 AM
Start with a tutorial, like those on nehe.gamedev.net.
Once you have your feet wet, just draw a quad and a bunch of lines, using polygon offset for the lines.
I think a quad strip is suited better. The choice is up to you. Look at the primitives and see for your self.
09-24-2004, 09:27 AM
how exactly does polygon offset work?
i've used GL_LINE_LOOP to create the outer edge of the ground plane, but i'm still not sure how to draw in the grid lines
09-27-2004, 11:40 PM
You can do a for-loop that draws GL_LINES, for instance:
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.