Game Development Community

Bug Report: Resizing Interiors Broken(?)

by dsfsd · in Torque Game Engine Advanced · 06/09/2004 (10:54 pm) · 10 replies

Now that I finally managed to get my interiors in TSE (due to a major DUH moment), I noticed something odd. I checked the forums to see if anyone else reported this, didn't see it anywhere obvious.

When trying to reize interiors, it just resizes the bounding box.

Here's a small quicktime video of what I was seeing:

www.subreal.net/tse/resize_bug.mov (500k)

It's low res, so what I'm basically doing is selecting the interior, then entering it's size as .5 .5 .5 instead of 1 1 1 and instead of resizing the dif interior, it resizes the bounding box only (to the proper size entered, tried a few different numbers).

Hope it helps

-Tim

#1
06/10/2004 (11:45 am)
Hrmm, scaling interiors is broken then? Should be fairly easy to fix, just needs a new transform matrix. Are you sure you want to do that though? I'm not sure that ever really worked properly with collision. Might be other issues as well.
#2
06/10/2004 (2:49 pm)
Dunno, used to scale down interiors all the time in TGE (for some reason mine always came about 115% bigger than I wanted due to how I made them). Usually worked ok until you got down to really miniscule amounts then collision anomolies pop up, but for like +/- 40% or so it usually works pretty well. :)
#3
06/10/2004 (5:37 pm)
I scaled the interior, saved the mission, exited TSE. The started back up and loaded that mission, the bounds was new smaller size, but it still rendered normal size. That suggest it disregards the scale value for rendering if thats any help :)
#4
06/18/2004 (9:00 am)
I scaled quite a few interiors in TGE, if I didnt scale it in worldcraft properly.. or if I wanted them different looking ingame etc (for my urban scenes I used large floor panels I scaled to fit into place)
#5
06/20/2004 (3:47 am)
I did this too in TGE without problems.. and I didn't notice any changes in the colission, at least not when changing the interior size with 10-50%
#6
06/20/2004 (10:45 am)
It's possible that scaling fix didn't make it over to TSE. Try diffing against HEAD.
#7
06/21/2004 (11:57 am)
OK, I put up a "fix" for this - the interiors will scale now. I'm still not so sure this is a good idea because of collision, but it's your own trip man, enjoy ;)
#8
06/21/2004 (12:21 pm)
* Warning noob question *

Why would scaling be an issue with collision?

Thanks. :)
#9
06/21/2004 (4:33 pm)
It's not clear to me that the collision for interiors takes into account the scale factor in all cases. If you are going to scale them in-game, then I would highly suggest testing as many collision cases (ballistic, vehicle, player, etc.) as your game will use to be sure.
#10
06/21/2004 (9:26 pm)
You specifically want to check the buildCollisionBSP, castRay, buildPolyList, and buildConvex.