Game Development Community

Dynamic Shadows in StaticShapeData Datablock

by Kiyaku · in Torque Game Engine Advanced · 04/09/2008 (1:18 am) · 3 replies

Hi,
i tried to add dynamic shadows to a staticObjectData and tried following:

datablock StaticShapeData(Schattentest)
{
   shapeFile = "~/data/shapes/rocks/rock1.dts";
   category = "Schattenobjekt";
   shadowEnable = true;
   shadowCanMove = true;
   shadowCanAnimate = true;
   shadowSelfShadow = false;
   shadowSize = 256;
};

Unfortunatly it didn't work.

I found the shadow commands in the player.cpp from the playerData and thought i could use that.

Do i have to manipulate the staticShapeData datablock in the source code or something to get it work with the dynamic shadows?

#1
04/09/2008 (2:08 pm)
Solved!
it was a problem of the PC i was working on. Works perfectly on my home PC
#2
04/10/2008 (10:59 am)
Dynamic shadows should work for anything that inherits from ShapeBase. That's pretty much everything except for TSStatic objects.
#3
04/10/2008 (12:35 pm)
Okay thank you.