How to make TSStatic have shadows
by Adam Beer · in Torque Game Engine Advanced · 07/02/2008 (1:45 pm) · 5 replies
I have looked through some of the source for TSStatic, and I cant find where I would add the shadowEnable variable to it. If I add it in TSStatic::TSStatic(), I get an undeclared identifier error. Is there anywhere for TSStatic objects that I can add the shadow variables in?
About the author
Adam is the owner of Ignition Games, an indie game and software development company.
#2
07/02/2008 (2:24 pm)
Im using 1.7.
#3
07/02/2008 (8:10 pm)
OK not sure which way this applies to you but here goes. Your object has to have either a collision mesh or polysoup enabled. It worked for me.
#4
What kind of shadows do you get by enabling polysoup, dynamic(moving) or static (baked in)?
And where do you enable the shadow in the code?
07/03/2008 (11:57 am)
To Ron Nelson:What kind of shadows do you get by enabling polysoup, dynamic(moving) or static (baked in)?
And where do you enable the shadow in the code?
#5
07/07/2008 (1:09 am)
Static. Sorry for the slow response. The shadow is automatically enabled when you use polysoup. Just relight the scene after setting the polysoup flag. If you want TSStatics to have Dynamic Shadows you are going to have to make them StaticShapes with datablocks.
Torque Owner Ronald J Nelson
Code Hammer Games