Changing shadow direction?
by Colin Doncaster · in Torque Game Engine · 10/08/2002 (7:12 pm) · 3 replies
Is it possible to change the direction of the shadow? Is it based of a hero light? Also, can more than 1 light cast a shadow and is there a way to change the colour of it?
Thanks - Colin.
Thanks - Colin.
About the author
#2
Thx, C.
10/08/2002 (11:09 pm)
That seems to change the world lighting, I'm curious about the players shadow and how that's cast.Thx, C.
#3
Unfortunately, the player shadow is presently hardcoded in the engine. Look at the module engine\game\shapeBase.cc and do a find for Point3F lightDir(0.57f,0.57f,-0.57f);. You can modify the lightDir value to match whatever you have set in your mission file (e.g. under the Sun datablock; the parameter direction), to have the player shadow case in the same direction as everything else.
Rich
10/09/2002 (6:52 am)
Colin,Unfortunately, the player shadow is presently hardcoded in the engine. Look at the module engine\game\shapeBase.cc and do a find for Point3F lightDir(0.57f,0.57f,-0.57f);. You can modify the lightDir value to match whatever you have set in your mission file (e.g. under the Sun datablock; the parameter direction), to have the player shadow case in the same direction as everything else.
Rich
Torque Owner Simon Windmill
There's no support for multi-shadow-casting lights.