Game Development Community

How do I re-light a scene and ALL objects in it?

by Ean Huddleston · in Torque Game Engine · 10/10/2006 (11:01 pm) · 8 replies

Hello,

After making changes to the sun object, I use apply, then Alt-L to relight the scene. But this doesn't seem to relight objects in my mission with the new sun settings. To do this, I have to click on every object. When each object is clicked on, it is then relit with the new sun settings. Is there a way to relight a scene as well as ALL objects in the scene, that doesn't require me clicking on all my objects or re-loading the mission? I've done some cursory searches on TDN but haven't come up with anything.

Thanks for your help,

Ean

#1
10/11/2006 (12:15 am)
Try selecting _nothing_ and relighting the scene.
#2
10/11/2006 (12:58 am)
I just tried making sure that absolutely nothing was selected, then relighting the scene, but no luck: my objects still did not get relit until I clicked on them.
#3
10/11/2006 (12:14 pm)
That is strange -- it's always relit the entire level for me and I can't think of any reason it would behave like that. And it's supposed to relight the entire level, so it shouldn't matter what, if anything, is selected.

I suggest going back to a clean installation of TGE, then load up the demo, drop some of the included objects into the level, and then see what the behavior is. I always keep a non-modified version around -- helps a ton when I've mucked something up and can't track it down...
#4
10/11/2006 (12:30 pm)
Have you made any source changes? That is rather odd.
#5
10/11/2006 (12:56 pm)
This happens with .dts objects, after the relight they look solid black until you select them, and then they show up properly. If you save and restart the map they show up fine. I've just chalked it up as a glitch and learned to live with it.
#6
10/11/2006 (1:40 pm)
Could this be a graphics driver problem? Can you try it on another computer, with a different brand of graphics card?
#7
10/11/2006 (3:50 pm)
Well I tried the relighting test on another machine, a machine with a different graphics card and a fresh TGE install. And I get the same problem: the scene relights, but my .dts objects keep the same lighting as before, until I click on them, at which point they are relit with the new sun settings. The main thing I wanted to check by posting was that I wasn't just missing some simple command that would relight all the objects in the scene. But from your various replies, it appears there's no such command-- it usually just works. So I guess I'll just keep experimenting (and possibly just settle on the "reload my mission after sun changes" strategy). Thanks!
#8
10/16/2006 (12:00 pm)
Torque caches DTS environmental lighting (the lighting picked up from the interior or terrain directly beneath the object) for higher rendering performance. With the Torque Lighting System (used in TGE 1.5, TSE, TLK, ...) the cached lighting isn't as noticeable. I'll make a note to clear the cache after a relight, but it may not available in the initial TGE 1.5 release.