Weird artifacts on Stencil Buffer Shadows Volumes

Started by
2 comments, last by Pudutzki 11 years, 8 months ago
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
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)?

[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

Is your mesh "water-tight"? i.e. all the polygons form a fully closed volume with no holes or cracks
Thanks for answering quickly.

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

Greetings
Matthias

This topic is closed to new replies.

Advertisement