Game Development Community

Problems with Player Shadow

by David Wheeler · in Torque Game Engine · 01/08/2006 (12:17 am) · 1 replies

Hi,
I should start by mentioning that I am using TLK 1.3.5 and a newly upgraded TGE 1.4. That said, I am experencing strange problems with the player's shadow. Sometimes the shadow disconnects itself from the player's feet and stays in one place as I move away, and after a certain distance it reconnects itself correctly. These screenshots should illustrate the issue:

The shadow in this shot is normal
www.thumbblade.com/img/ShadowProblem1a.JPG
However, it doesn't move when I back up
www.thumbblade.com/img/ShadowProblem2a.JPG

Another problem I am having is that parts of the shadow are often covered up by terrain polygons:
www.thumbblade.com/img/ShadowProblem3a.JPGwww.thumbblade.com/img/ShadowProblem4a.JPG
Is anyone else having these problems? Could it be an issue related to using the 1.3.5 version of the lighting kit with v1.4 of the engine? Or perhaps I made a mistake when implementing the lighting kit? Any thoughts would be appreciated.

Thanks!
Dave

#1
01/09/2006 (3:34 pm)
Hi David,

I've never seen a problem with the shadow not moving, but the overlapping terrain is a known TGE glitch. The problem occurs because the terrain deforms into various levels of detail, while the shadow code uses the highest level. As the terrain deforms, portions of it can pop up through the shadows (and other things, like DTS objects, interiors, ...).

-John