3) LightDirection isn't set, you'll have to define it. Most likely what you want to do is use the global sunlight, so put this at the top of the code:
Code:

extern float4 vecSunDir


"And change LightDirection to vecSunDir in your code." ----> how do i do that?


http://www.coniserver.net/ubbthreads/showflat.php?Cat=0&Number=560847&an=0&page=0#560847 Cmon every one! Help me building this camera script! The first of its kind in 3dgs! Thnkx to everyone who helped me in my questions