basic question about quads

Started by
1 comment, last by siddim 21 years, 10 months ago
I am working a on simple 3d model with openGL, and something did''n quite work, probably i just miss a line of setting, i am drawing model, the second square is overlaping the first one. how come? http://www.thinbox.ca/tests/gus/images/Image2.gif the red one is suppose to be under.
Advertisement
1) Make sure you have a depth buffer.
2) Make sure you have depth testing enabled glEnable (GL_DEPTH_TEST)
that''s it.. it work, thanks alot..

This topic is closed to new replies.

Advertisement