Player shadow on static object
by Guimo · in Torque Game Engine Advanced · 08/29/2007 (9:58 am) · 3 replies
Hi,
I have placed a platform (a static object) on the terrain but when the player stands on the platform no shadow is rendered. Does anybody knows how to solve this?
I have placed a platform (a static object) on the terrain but when the player stands on the platform no shadow is rendered. Does anybody knows how to solve this?
About the author
#2
08/29/2007 (1:09 pm)
Can you post the link
#3
http://tdn.garagegames.com/wiki/TorqueShaderEngine/LightingSystem/Dynamic_Shadows
I dont seem to find the resource to make an object cast shadows on static but the steps were:
a. In game/shadow.cpp change:
a. In lightingSystem/sgObjectBasedProjector.cpp change:
Please if you find the original thread give credit to the appropiate creator.
Luck!
Guimo
08/31/2007 (8:25 am)
First read:http://tdn.garagegames.com/wiki/TorqueShaderEngine/LightingSystem/Dynamic_Shadows
I dont seem to find the resource to make an object cast shadows on static but the steps were:
a. In game/shadow.cpp change:
//U32 Shadow::smShadowMask = AtlasObjectType | TerrainObjectType | InteriorObjectType; U32 Shadow::smShadowMask = AtlasObjectType | TerrainObjectType | InteriorObjectType | StaticShapeObjectType | StaticObjectType ;
a. In lightingSystem/sgObjectBasedProjector.cpp change:
//gClientContainer.findObjects((AtlasObjectType | TerrainObjectType | InteriorObjectType), sgShadowProjector::collisionCallback, this); gClientContainer.findObjects((AtlasObjectType | TerrainObjectType | InteriorObjectType | StaticShapeObjectType | StaticObjectType ), sgShadowProjector::collisionCallback, this);
Please if you find the original thread give credit to the appropiate creator.
Luck!
Guimo
Torque 3D Owner Guimo