Game Development Community

Unable to change 'sun' position

by SeanT · in Torque Game Engine Advanced · 09/28/2006 (10:25 am) · 11 replies

Hi,
I've found that the sun location cannot be moved. Elevation and Azimuth are always the same. I've been looking through the source trying to find the answer but haven't found one yet. Any help would be appreciated.

Thanks!

#1
09/28/2006 (12:11 pm)
You are referring to fxSunlight?
#2
09/28/2006 (2:27 pm)
Well that too, as fxSunlight also remains locked to the sun's (not fxSunlight) initial position. A couple of other users have also ran across this.
#3
09/28/2006 (4:43 pm)
Do you mean the lighting doesn't change direction after the sun's direction is adjusted? Make sure you relight the scene after changing the direction. Also Atlas is not yet affected by the sun (see details).
#4
09/29/2006 (4:05 am)
Hi John, I'm using legacy terrain, with the original TSE demo on MS4 HEAD( i've tried several different mission files ). After a relight i don't see any terrain shading changes. I first noticed this when trying to move an fxSunlight object which was locked to the sun.
#5
09/29/2006 (7:53 pm)
Yep, sun location/direction does not change no matter what azimuth/elevation I set it to be, either.
#6
09/30/2006 (1:36 am)
Noted - I'll take a look.
#7
10/01/2006 (2:14 pm)
The sun is working correctly here - these are the steps I used for testing; change the Direction property (azimuth and elevation are not used in TSE, I'm not sure why, maybe these should be put back in?), hit Apply, and relight.
#8
10/01/2006 (4:24 pm)
Ok, thanks for clearing that up John. It works fine using the direction. Sure isn't very user friendly though.
#9
10/01/2006 (5:45 pm)
I agree - I'll send an email around to see if there was a reason for those props, or if they were just left-overs from an older Torque revision, and if anyone minds replacing them with the TGE controls.
#10
01/20/2007 (12:38 pm)
Hi Guys,

Just wanted to follow up with you on this thread. I can not get the fxsunlights to show up locked on to the sun. We are using TSE with the Legacy terrain editor and in the code we have turned off repeating terrain. I have tried copying / pasting sunlight datablocks from other TSE / TGE demos and putting them in our mission file and it does not work. Any insight? Thanks!

Mark