Sign in to follow this  
BTierens

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this