I have a terrain and I want to render moving cloud shadows onto this terrain. Something like this:
Anyone has an idea how this effect could be achieved in a simple way with DirectX 9?
I haven't done anything with projected textures, so I am not quite sure how to do it.
I understand I could use a orthographic projection (with a huuuge box) to project a texture with many cloud shapes onto the terrain. But isn't this overly complicated? Plus, how do I make the clouds move? I need some scrolling texture coordinates on my terrain vertices but I can't get up with a good idea how to implement this:/
1) I guess I should use a orthographic projection with a frustum box that covers the whole terrain?
2) I guess I can just use one big texture that contains several clouds? Maybe the clouds are just black and everything else in the texture is transparent. Good idea?
3) My biggest question is how to make the projected texture move. If I move the projector (the box) then eventually the terrain will be out of the frustum box. How can I implement infinite scrolling with projected textures? Maybe just add time to the projected texture coordinates?