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:
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?
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?
Torque Owner Kiyaku
it was a problem of the PC i was working on. Works perfectly on my home PC