THanks a lot! Got it working, although the shadow doesn't fit.
I load up an example to test with.
EDIT:
Here is the testing environement:
http://www.puppenheim.org/Shadow_Mapping_Testing.zipwith the test_terrain.hmp I got at the last time 4 little shadows in 4 directions. With the terrain_relief.mdl I got one a bit too big shadow.