Sun direction question

Sun direction question

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
Antero
Posts: 14
Joined: 13 Mar 2012, 15:47

Sun direction question

Post 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!
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Sun direction question

Post 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.
Antero
Posts: 14
Joined: 13 Mar 2012, 15:47

Re: Sun direction question

Post by Antero »

Off to refresh my trigonometry... thanks!
Post Reply

Return to “Map Creation”