Game Development Community

Shadows

by none · in Torque Game Engine · 01/07/2010 (6:38 pm) · 2 replies

Ok, this is definitely gonna sound like an omega newb questions but... I own TGE and was wondering if the lighting editor it comes with is TLK. If so, could someone tell me how I can make it cast shadows (or simulate casting shadows) on .dts objects? Thank you!

#1
01/07/2010 (7:07 pm)
I think you're right, TLK was integrated into TGE 1.5 (before that it was an add-on pack for 1.4).

Casting shadows on .dts objects is tricky. A simple way to fix it is to go into shadow.cc and add StaticShapeObjectType to the mask at the top, so shadows will be received by static objects. However, the shadow is received on their collision mesh, which usually doesn't match their visible geometry.

Brett Fattori implemented stencil shadows in 1.3, which basically means true shadowing (and self-shadowing!) on DTS, DIF, terrain, whatever. However, the engine code has changed significantly since then, and the resource is difficult to implement in 1.5 (I couldn't figure it out, but apparently others have).

Also, someone posted here a while ago showing that he'd gotten something similar to work supposedly in 1.5, but he never got around to sharing anything :P.
#2
01/07/2010 (7:29 pm)
:( Thanks I'll check those out. Hopefully I can get one of em to work haha.