Jump to content
  • Advertisement
Sign in to follow this  
Pudutzki

Weird artifacts on Stencil Buffer Shadows Volumes

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

Hello everybody,

in a small game engine project I've implemented stencil shadow volumes with z-fail.

So far everything looks good. Shadows wrap around and look good in general.

I noticed a strange artifact which is only visible on shadowed areas, which looks like a small
version of the scene. It moves along with the camera.

Did anyone see such artifacts before and can give me a hint, what could be wrong? (see images)

Notice : If I reduce the far clipping plane the artifact gets bigger.

Thanks in advance
Matthias

Share this post


Link to post
Share on other sites
Advertisement
I haven't seen this sort of artifact before. Is it possible that the upper grid is not topologically closed (i.e., its shadow volume polygons are z fighting with each other)?

Share this post


Link to post
Share on other sites
Is your mesh "water-tight"? i.e. all the polygons form a fully closed volume with no holes or cracks

Share this post


Link to post
Share on other sites
Thanks for answering quickly.

I figured it out, it was a missing glEnable(GL_CULL_FACE)

Greetings
Matthias

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.

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!