I'm playing with a day/night cycle using the procsky material and sky sphere included in the UDK. I'm using a dominantdirectionallightmoveable actor for the sun, which works just fine. However, I am trying to add a 2nd light actor for the moon. If I use another dominant directional moveable light, I get weird lighting problems. So instead I tried using the directional light toggleable, with PHYS_interpolate. In the editor, it works well, matinee animations and all. But testing ingame does not. It seems that the toggleable directional light is immovable. Is there anyway I could use a 2nd, movable light in this setup?
Announcement
Collapse
No announcement yet.
Non-dominant directional light movable?
Collapse
X
-
We created a hard-coded system for this in a prototype ages ago - the answer was not to use dominant lights (well, you can use one, but our system included two suns, rather than a sun and a moon), but use regular directional lights.
If you want a moveable direction light, all you have to do is set bStatic to false and bMoveable to true in a subclass of the directional light class - it's that easy.
Comment