Advertisement

basic question about quads

Started by June 07, 2002 09:53 PM
1 comment, last by siddim 22 years, 8 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.
1) Make sure you have a depth buffer.
2) Make sure you have depth testing enabled glEnable (GL_DEPTH_TEST)
Advertisement
that''s it.. it work, thanks alot..

This topic is closed to new replies.

Advertisement