Alt-tab screws lightmaps?
by Stefan Lundmark · in Torque Game Engine · 07/07/2004 (12:10 pm) · 12 replies
When alt-tabbing out of TGE and back in, all interiors get very bright. Is this because I don't cache my lightmaps?
About the author
#3
07/07/2004 (4:16 pm)
The same thing happens with me, sometimes. I imagine it has something to do with flushing/reloading the textures? It seems to only happen when the computer really drags down right as I'm switching back.
#4
07/07/2004 (4:18 pm)
Oh yeah Eric, relighting the scene does help. So does flushing the texture cache.
#5
07/07/2004 (10:28 pm)
That's very mysterious. It appears the lightmaps aren't being rendered... I have no idea why that would be happening, though. Have you tried setting breakpoints in the interior code to find out if any passes are failing/being skipped?
#6
07/09/2004 (7:08 am)
Actually no, I haven't. I have never been in the interiorcode before, let alone change it. :) I'm going to ask a friend to look in his copy, thanks.
#7
All DTSs are black, and interiors are uniformly shaded. Relighting doesn't change anything, even after adding a new lighting pack light; the only way to fix it is to reload the mission.
If anyone has any thoughts on this, we'd be very greatful to hear them. Thanks very much!
(Edit: One more detail: this only happens if you're running in full screen.)
12/14/2005 (7:40 am)
As I mentioned here (http://www.garagegames.com/mg/forums/result.thread.php?qt=17584), this happens consistently with Saints and Sinners Bowling and Rocketbowl, on any machine that we've tried it on, if you ALT-TAB away while a mission is loading, and come back when the loading is done.All DTSs are black, and interiors are uniformly shaded. Relighting doesn't change anything, even after adding a new lighting pack light; the only way to fix it is to reload the mission.
If anyone has any thoughts on this, we'd be very greatful to hear them. Thanks very much!
(Edit: One more detail: this only happens if you're running in full screen.)
#8
01/01/2006 (2:46 pm)
@Yossi: Had what you describe happen to me as well.
#9
Still would like to see a better solution, if anybody has any ideas.
01/02/2006 (7:33 am)
In the end we fixed it by pausing the loading process when the player's alt-tabbed out of the game, to ensure that no objects are created while the video stuff isn't active. It's a shame that you can't switch out to check your email or something while the game is loading, but at least the game looks right once it starts up.Still would like to see a better solution, if anybody has any ideas.
#10
01/08/2006 (2:09 am)
The guy who did Minions of Mirth ran into and squashed this problem, IIRC. Do a little digging and you ought to find it. For the life of me I cannot remember his name right now - embarassing!
#11
01/08/2006 (4:01 am)
Josh Ritter :-), the Python god and master of MoM :-).
#12
01/08/2006 (4:41 pm)
That's the one! :)
Associate Kyle Carter