and that led me to wondering how on earth the texture is projected.
from this wikipedia page: http://en.wikipedia.org/wiki/Shadow_mapping
there is this picture:

as you can see (or maybe not, look at the page for more), they have taken what a camera sees, and then put that onto an image that another camera sees...they made it look correct!
I think this is to do with texture projection done with a shader, but i have no idea how it works, and despite searching around all i find is bits of code that relate to one project and not another, and none actually explain how it works!
so although this may not be an easy thing to ask, i would like to know (in detail) how texture projection (or whatever they did) works.
If you have some good links that explain it, or maybe if someone knows and can explain it themselves, that would be great.