Original Post
Hello...
I''m trying to understand how "Perspective Shadow Maps" work, and i have a question concerning how to project the shadow map on the scene.
I read the original paper (i haven''t found anything else talking about it), and i read the "Recipe for Computing the Perspective Shadow Map Matrix".
I tried to implement, what i understood and here are results for a simple scene.
Scene rendered from light. The red ball is the camera, and the line is camera'' direction.
The shadow map.
As you can see, the perspective "distorsion" is working. I mean, parts closer to the camera are having bigger resolution, than those far from the camera.
My problem is, assuming that the above are correct, how to project this on the scene.
Normal projective texturing doesn''t apply. I can''t figure out what i''m missing, so it projects correctly.
I''m not posting a screenshot to show how the shadow is projected on the scene, because for the above camera-light position, i can''t see any shadow!
What i mean with projective texturing, is what you use with normal shadow mapping.
If anyone has a comment to make, please post it.
Thanks in advance.
HellRaiZer