Game Development Community

Casting shadows on dts TSstatic object

by Viren Thambidorai · in Torque Game Engine Advanced · 03/20/2007 (10:51 pm) · 5 replies

Hi,

I have a player in my demo which casts shadow on terrain but when the player moves onto a dts object in my demo the player does not cast the shadow. Am i missing something , i have made necessary changes in shadow mask, so that it casts shadow even for Staticshape object type but it does not seem to be working, can anyone give me the solution for it.

Thanks.

#1
03/23/2007 (1:20 pm)
Dynamic shadows can only cast from ShapeBase derived objects onto interiors, the terrain, or other ShapeBase derived objects. Try switching from TSStatics to StaticShapes.

Also check out the TDN Torque Lighting System section (TGEA: Dynamic Shadows), and make sure to configure the player's datablock to cast DTS to DTS shadows using: shadowDTSShadow.
#2
03/28/2007 (11:16 pm)
Thanks a lot John..
will try it out....
#3
03/29/2007 (1:34 am)
Hi Bob,

I tried switching from TSStatics to StaticShapes, configured the player's datablock to cast DTS to DTS shadows: shadowsToShadow = true, but it doesn seem to be working, i might be missing something. can you please guide me.

Thanks
#4
04/01/2007 (7:12 pm)
Are the shadow receiving objects orc sized or larger? I'm currently working on a bug related to dynamic shadows not rendering properly on large objects - you could be seeing the same thing.
#5
04/01/2007 (10:46 pm)
Interior object( .dif file ) recieves the shadow, but DTS to DTS seems to be having a problem. I went through the forum and found that most of them have the same problem, but i couldn get a proper solution. Probably there is a problem with the depth partitioning, just a guess!!! As far as the size of the shadow recieving object it is a flooring which is a DTS object, and it is larger than the size of an orc. if i get the flooring somewhere to the ground level ie By changing the z-position of the floor, the shadows are recieved properly but that is not what i want.


Thanks.