Sign in to follow this  

Stencil buffer question

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

Hey everyone! Here is a problem:having a stencil buffer activated with a function: glStencilFunc(GL_ALWAYS,0,0); glStencilOp(GL_KEEP,GL_KEEP,GL_INCR); i draw only one object,so once i have it,object's pixels in a stencil buffer are all equals to 1.I can check it this way: glStencilFunc(GL_EQUAL,1,1); Now,if i change reference and mask value to 0,i will still have my object on a screen(meaning it has passed the test)!Can anyone explain how is it possible?And it happens in more complex cases,just as if there is nothing in stencil buffer but 0's.

Share this post


Link to post
Share on other sites

This topic is 2811 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.

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