Game Development Community

But seriously - why is my mission relighting - every time?

by Andy Hawkins · in Torque Game Engine Advanced · 06/27/2008 (10:34 pm) · 4 replies

I don't know what the trick is.

I was told mission relighting only happens once. I change nothing in the scene. I reload the game, it's relighting again???? This happens in TGEA 1.0.3

#1
06/27/2008 (10:45 pm)
Odd, shouldn't do it unless the mission file has changed. I got tired of the delays though and rigged up my scene to load lightmaps from saved lightmap files so that it bypassed the CRC and relighting altogether. It's definitely at its most annoying with Atlas files, long relight.
#2
06/27/2008 (10:58 pm)
Have you made any changed to the code? If anything dynamically edits an object in the MissionGroup before the mission lighting, it will be forced to do a relight.
#3
06/27/2008 (11:34 pm)
Yes maybe it was a change to the mission file. Since I stopped changing the mission file - the lighting files seemed to persist.
#4
06/29/2008 (3:13 pm)
The trigger for a scene relighting is based on a CRC of the mission file.
So if you change the mission file it will update the light map.