I've been following these tutorials:
rastertek.com but I have encountered an issue while doing tutorial #48, for some reason the shadows don't match the shape of the objects and are random glitches on the terrain, I've tried everything, copy+pasting files and shaders from the tutorials, I went over the code about 100 times checking it was right, but I can't get it to work correctly, I hope someone can help!
(Link to VS2010 project):
Mediafire
EDIT: I believe this is an issue the render-to-texture setup or the shadow-shaders, I set the texture of a plane model to the render-to-texture output and all it showed was a large black image with a small white-to-black gradient in the center, that was slowly rotating, also, the terrain and shading looked absolutely nothing like what I saw on the render-to-texture, which lead me to believe the shadow shader wasn't reading the shadowmap properly
If you can't be bothered running the code, here's an image of my problem:
<img src="http://i.imgur.com/4YpzVyW.png" title="Hosted by imgur.com"/>
As you can see, the shadows are pretty retarded.