Page 1 of 1

Sun direction question

Posted: 11 Apr 2012, 20:28
by Antero
I'm trying to make a specular map with l3dt. When making a light map, it asks for sun direction and elevation in degrees. How can I translate spring's sun direction values into this format?

The map's SunDir=0.008 0.556 -0.444 (taken directly from SSB)

Thanks!

Re: Sun direction question

Posted: 11 Apr 2012, 21:06
by Beherith
Sundir in spring is a vector of X Y Z.
If you look at the map in the TA camera (default) left is -X, right is +X up is Y, down is -Y, backwards is -Z and forwards is Z.

Re: Sun direction question

Posted: 11 Apr 2012, 23:51
by Antero
Off to refresh my trigonometry... thanks!