Game Development Community

Static shapes casting shadows?

by Maddermadcat · in Torque Game Engine · 08/24/2007 (4:25 pm) · 2 replies

I'd like some (not all, of course) static shapes to cast shadows like vehicles and players do. Is this possible? And if so, can anyone clue me in as to how I'd go about implementing this?

#1
08/28/2007 (2:48 pm)
Im not sure how you could change them on/off(for each object) but it is pretty easy to do for everyone, At the moment I dont have the source code on this computer but try digging around in the Shapebase files, or better yet start in the player object, search for Shadow and follow it back, There was a bunch of #define I think that controlled what objects get what shadows. its at 60% so ill edit this after if I can find the file again but I do remember it being a really quick change when I did it.
#2
08/29/2007 (5:53 pm)
Are they TSStatic objects or StaticShape objects (derived from ShapeBase)?

For StaticShapes set the datablock property shadowEnable to true to enable dynamic shadow casting.

TSStatic objects cannot cast dynamic shadows.