• Advertisement

Archived

This topic is now archived and is closed to further replies.

basic question about quads

This topic is 5738 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
1) Make sure you have a depth buffer.
2) Make sure you have depth testing enabled glEnable (GL_DEPTH_TEST)

Share this post


Link to post
Share on other sites

  • Advertisement