Jump to content
  • Advertisement
Sign in to follow this  
metalcrusader

zFail capping for stenciled shadow volumes

This topic is 4492 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! I create Shadow Volumes by extending the occluder with quads between the triangles. Then I extrude them in the vertex shader, if the vertex´ normal isn`t facing the light. For shadow detection I use zFail and everything works fine! But then I tried to calculate the shadow volume on the cpu. Therefore I calculated the silhouette and extrude it. For capping I tried out 3 versions: 1) Use frontfaces as front cap and extruded backfaces as backcap. 2) Use frontfaces as front cap and extruded and reversed frontfaces as backcap. 3) use backfaces as frontcap and extruded backfaces as backcap. ...but I always get the same error. Next to the correct shadow, there is another view-dependant wrong shadow. What is this? And how do I get rid of it? Thank you for reading!

Share this post


Link to post
Share on other sites
Advertisement
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!