Game Development Community

Shadow problem

by Stephen · in Torque Game Engine · 10/17/2007 (8:49 pm) · 4 replies

I'm using a fresh install of TGE 1.5.2 and just playing around in the editor and place a few shapes of Kork and I noticed I get this black spot on the ground. The only thing I can think of is that the shadow is coming from the bound box. If so is there a way to fix this without changing the model?

img136.imageshack.us/img136/6066/shadowproblemaw2.th.jpg

#1
10/18/2007 (6:15 am)
No, you will probably have to change the bounding box, unfortunately. It's likely that the bounding box isn't used for the player model at all so it is just arbitrarily large.
#2
10/18/2007 (5:37 pm)
So is there a reason why it's doing this?
#3
10/19/2007 (12:19 am)
It seems to me that it is shadows baked in the terrain.

If I remember correctly, I had this when inerting dynamically objects in my scene, but perhaps not at the right moment in the scene construction.

Did you try a relight on your scene ?

Nicolas Buquet
#4
10/20/2007 (6:34 pm)
This is happening because, as Nicolas said, you are making that player model a TSStatic. TSStatic objects use static lighting that is baked into the lightmap using the bounding box as a reference.
I don't have any experience with the Kork model or the player dynamics, but the bounding box for that model could very well be overly large, if the bounding box is unimportant to the player code.

If you plan to use the Kork model as anything but a player model, using a StaticShape would probably yield the best results, shadow-wise. Though the model probably wasn't built for anything but a player character.