Relight scene --> engine crashes
by Marcin Zygmunt · in Torque Game Engine · 03/26/2005 (9:13 am) · 14 replies
I put onto the scene some objects (interioirs) sent me by a friend. When I tried to relight the scene engine crashed. I tried a few times but approximately during every fourth one engine crashed. Is it an error in the engine or in the model?
About the author
#2
03/26/2005 (11:58 am)
Maybe it's a probem with map2dif? Are there any bugfixes for that tool?
#3
03/26/2005 (12:01 pm)
If your trying to do to much for your computer it will crash like that time I added 20 houses... but it could be something else.
#4
03/26/2005 (12:16 pm)
It wasn't very much. About 9 simple shapes. In a game I'd like to put much more. Engine crashed when I added only one object. Has anyone met that kind of problem? Any suggestions how to solve it?
#5
03/26/2005 (12:18 pm)
Could you post the MAP file and DIF here? I'll try it and see if i can spot the issue.
#6
I put them into a default mission from the FPS Starter Kit.
03/26/2005 (12:50 pm)
Here are these files: burzuj.nma-fallout.com/kolos/BIS/diffiles.rarI put them into a default mission from the FPS Starter Kit.
#7
03/28/2005 (8:21 pm)
I tried these and they crash on me too. Could you post a wireframe screenshot or the map files themselves? That might help us determine what's wrong.
#9
03/29/2005 (1:33 pm)
That file doesn't crash here. Have you applied the shadowmap limitation fix into your TGE branch?
#10
03/30/2005 (5:18 am)
I've simply put them into a default mission from the fps starter kit, just to see how they look like. Nothing else.
#11
What shadowmap limitation fix are you referring to? How does one implement this fix? I tried searching the forums/resources, and I didn't get any hits.
I'm having the same trouble as Marcin. My .map's compile fine, but when I relight the scene in-game the engine crashes. If you could give me more info on this fix I would greatly appreciate it.
05/04/2005 (7:10 pm)
Stefan,What shadowmap limitation fix are you referring to? How does one implement this fix? I tried searching the forums/resources, and I didn't get any hits.
I'm having the same trouble as Marcin. My .map's compile fine, but when I relight the scene in-game the engine crashes. If you could give me more info on this fix I would greatly appreciate it.
#12
Anyway, open engine/sceneGraph/shadowVolumeBSP.h and find where it says MaxWinding = 32 and change it to 256. Recompile and poof, no more crashing!
This is a temporary fix as you're just hard coding a higher limit. I know this as well as other hard coded stuff were planned on being improved in 1.4 but don't know it's progress.
Hope this helped.
Nick
05/05/2005 (1:20 am)
This crashing on relight was bugging me for months. Then I found the bug fix mentioned somewhere on the site but can't find the link anymore. It wasn't in the forums but rather an official bug report.Anyway, open engine/sceneGraph/shadowVolumeBSP.h and find where it says MaxWinding = 32 and change it to 256. Recompile and poof, no more crashing!
This is a temporary fix as you're just hard coding a higher limit. I know this as well as other hard coded stuff were planned on being improved in 1.4 but don't know it's progress.
Hope this helped.
Nick
#13
Thanks again,
Jeremy
05/06/2005 (7:23 pm)
Thanks a lot for the feedback Nick! You just saved me a lot of headaches, and probably Marcin as well. Now I can get back to focusing on making my interior rather than on keeping it from crashing the engine. It doesn't bother me that it's a hard coded fix, as that can always be dealt with at a later time. At least now I know where to look!Thanks again,
Jeremy
#14
Nick
05/07/2005 (2:10 pm)
Glad it worked! The original bug was submitted by Josh Ritter by the way.Nick
Associate Tom Spilman
Sickhead Games