Another lighting problem
by Adam Beer · in Torque Game Engine Advanced · 01/23/2008 (1:49 pm) · 3 replies
I cant get my palm tree's shadow to project its shadow on to another model.

Here is my datablocks:
Please help. Thanks.

Here is my datablocks:
datablock StaticShapeData(tree)
{
category = "Trees";
className = "treetest";
shapeFile = "~/data/shapes/trees/palm2.dts";
shadowEnable = true;
shadowCanMove= true;
shadowCanAnimate= true;
shadowSelfShadow = true;
shadowDTSShadow = true;
shadowSize ="2048";
shadowMaxVisibleDistance ="50";
shadowProjectionDistance ="30";
shadowSphereAdjust="3";
shadowBias = "0.001";
};
function treetest::onAdd(%this,%obj)
{
%obj.playThread(0,"ambient");
}
datablock StaticShapeData(sandbags)
{
category = "Props";
className = "sandbag";
shapeFile = "~/data/shapes/sandbags/sandbag.dts";
shadowEnable = true;
shadowCanMove= true;
shadowSelfShadow = true;
shadowDTSShadow = true;
shadowSize ="256";
shadowMaxVisibleDistance ="15";
shadowProjectionDistance ="10";
shadowSphereAdjust="3";
shadowBias = "0.001";
};Please help. Thanks.
About the author
Adam is the owner of Ignition Games, an indie game and software development company.
#2
Its all in the shadow so hard to say if it does or not.
As well: has the mesh a los collision mesh?
01/24/2008 (10:27 am)
Due to what do you assume that it does not cast a shadow onto it?Its all in the shadow so hard to say if it does or not.
As well: has the mesh a los collision mesh?
#3
01/24/2008 (10:31 am)
Sorry Marc I didnt understand any of what you said. Both objects have a regular collision mesh.
Torque Owner Adam Beer
Ignition Games