Bias Shadow Mapping Evolution

Here are some screen captures of the program when I was computing Bias Shadow Mapping

(based on http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-16-shadow-mapping/ )

First implementation :

We can see there is a shadow acne problem when we don't add the bias. Bias shadow acne

Resolved when we add a bias (small error margin).

Bias shadow Mapping without acne

 

We also get confronted to peter panning problem (Flying shadows)

Bias shadow mapping, Peter Panning effect

Final implementation : 

And to solve this problem we figured out (With the help of the tutorial given above) that with strong object. (Larger than one pixel this problem is resolved and it's more realistic to have a larger wall)

Peter Panning problem is resolved