View Full Version : [Support] Is it possible to change sun altitude for different times?

08-16-2011, 11:56 AM
When it's Morning/Day I want the Sun to be at 90

When it's Evening/Night I want the Sun to be 0 (no shadows)

Any way to do this, currently it looks like a once off setting that affects all times of day.

08-16-2011, 12:36 PM
It would be possible with by modifying the UI

ontrigger="Set('scene_sunAzimuth',<azimuth>); Set('scene_sunAltitude',<altitude>);"

where <azimuth> and <altitude> would be the desired azimuth/altitude which you would calculate from the param, which ranges from 0 to 1(0 is midnight, 0.5 is noon,etc)

edit: if you don't know what to do with this I guess I can make an example map with this for you

08-16-2011, 01:16 PM
Yeah that would be cool, no idea where I would need to put that.

08-16-2011, 01:29 PM
Here you go:
note: the shadows only start moving at 0:00, + you have to look closely(recommend shadows at high)
i only added this
Set('scene_sunAzimuth',param*90); Set('scene_sunAltitude',param*90);
to game.interface(use search), so it wont be anything good but its just an example

08-16-2011, 05:30 PM
Thanx will have a look at it.