Jump to content
  • Advertisement
Sign in to follow this  
Sir Sapo

Stencil Buffer

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

How expensive is using the Stencil Buffer. I just finished making a little demo with a 3D model running across a slick(read : reflective) floor and when I just render the model and floor(without reflection), it runs great. However, whenever I enable reflection, the framerate drops dramatically, but when I dont use the stencil buffer and I just draw the inverted model, the framerate stays the same. Any insight to why this is happening?

Share this post


Link to post
Share on other sites
Advertisement
you are having to do an extra per-fragment operation each frame, as such its going to require more GPU resources than a simple model render.

What do you mean by 'drops dramatically'? and what card do you have?

Share this post


Link to post
Share on other sites
try glPrintf( "%s\n", glGetString( GL_VENDOR ) );
perhaps u have software
set the window to 32bit color and 24bit depth + 8 bit stencil (also the desktop to 24/32bitcolor)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!