Jump to content
  • Advertisement

Archived

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

Jumpman

Stencil Buffer Question ?

This topic is 5594 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 All. I am playing with the Stencil buffer at the moment as I am using to it to reveal the level as jumpman moves about.. Is there any way to draw into the stencil buffer without it appearing on the main screen.. I am drawing a large circle behind jumpman as he moves but I can see the white blob behind him. I worked out that glColorMask(FALSE, FALSE, FALSE, FALSE); would still set the stencil mask and not draw the main screen which is exactly what I want but is there a better method to do this ?? Many thanks Chris Jumpman - Under Construction

Share this post


Link to post
Share on other sites
Advertisement
What''s wrong with glColorMask(FALSE, FALSE, FALSE, FALSE)? It is fast and simple.

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
There is no other fast and simple way I'm aware of.

Edit: What does your signature mean?! You're under construction?

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

[edited by - shlomisteinberg on July 27, 2003 2:40:42 AM]

Share this post


Link to post
Share on other sites

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