Shadow Mapping Issue

Started by
2 comments, last by IvicaKolic 13 years, 6 months ago
Hello all,

I am trying to learn how to use shadow mapping technique. While learning basis from "OpenGL: Programming book" and "More OpenGL Game programming", I've been able to reproduce such technique on hardware using GLSL.

My problem comes with this image:
http://img831.imageshack.us/f/56192629.jpg/

Where does that razor behavior comes from and how to correct it? My guess is that it is a polygon offset issue as round object seems to struggle with it. But how are we supposed to overcome this issue.

Image uses per pixel lighting and shadows are created by displaying only 50% of the original color. Per-vertex lighting seems to correct this issue as the polygon color smooths a way better thanks to vertex interpolation, but that is not an acceptable solution.

Regards.
Advertisement
Personally I'd suggest switching over to VSM as being the most robust way to tackle these artifacts.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
appreciate your suggestion Promit, I'll have a look on those too.
Use Camera Space Shadow Maps and be done with it (and some filter/smoother).

This topic is closed to new replies.

Advertisement