Jump to content
  • Advertisement
Sign in to follow this  
BTierens

Draw using z-buffer but don't write to z-buffer

This topic is 4821 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

Hi, How can i draw z-sorted polygons without writing additional data to the z-buffer? glDisable(GL_DEPTH_TEST); is not an option as it disables the z-buffer completely.

Share this post


Link to post
Share on other sites
Advertisement
Hi,
Has anyone had trouble with glDepthMask(FALSE) turning off depth testing altogether? Im using the nvidia glx driver.

Toby

Share this post


Link to post
Share on other sites
Quote:
Original post by thjc
Hi,
Has anyone had trouble with glDepthMask(FALSE) turning off depth testing altogether? Im using the nvidia glx driver.

Toby
you should start a new thread instead of hijacking this one. anyway, have a read of this newsgroup thread

Share this post


Link to post
Share on other sites
You should use glDisable(GL_DEPTH_TEST) when you want to disable depth testing... :)

glDepthMask simply states if zbuffer should be affected by the current draw operation...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!