Game Development Community

Illumination of DTS vs. DIF

by Rubes · in Torque Game Engine · 08/03/2006 (7:55 pm) · 4 replies

I haven't done very much with TLK's individual dynamic lights yet, but I'm starting to get into it with my project. One of the things I'm trying to do is implement a candle for the player to carry around in first-person mode. So I'm setting up a ShapeBaseImage of the candle with a particle emitter for the flame, and I'm going to link a dynamic light to the emitter node.

While trying to get there, I've gone ahead and first tried just attaching a dynamic light to the player, to see how it looks and works as the player moves around. I created a light based on the sgDynamicFireDatablock and attached it a little above and in front of the player's head.

After messing with some of the settings, the resulting light is perfect -- but only as it affects DTS objects. The light has much less effect illuminating the DIF interiors. So if I'm in a dark hallway with a door at the end, walking up to the door produces an image where the door is nicely illuminated but the walls are not. If I turn up the brightness of the light, the walls are better illuminated but all DTS objects become super-bright.

And standing in a dark room or hallway without any DTS objects in it just makes for a dark room, even though the candle light shoud be illuminating it.

Any thoughts on how best to improve the illumination of interiors? The DTS objects just stand out far too much, but I'm not sure if there are some settings to mess with, or if this is just the way DTS and DIF objects differ and there's not much you can do about it.

Thanks!

#1
08/03/2006 (9:50 pm)
The stock lighting model works best with dynamic lights. Because of the way Torque's interior and terrain dynamic lighting is rendered the TLK lighting models cannot be applied to them. The stock lighting model was added so the dts lighting can more closely match the interior and terrain dynamic lighting.

Static lighting works the same across the board.
#2
08/03/2006 (9:58 pm)
Gotcha...Thanks, I appreciate the help John.
#3
08/04/2006 (9:30 pm)
@John: I think I'm a little confused when you refer to the stock lighting model. Are you referring to the six different Lighting Models included with TLK that you can pick from in the Light Editor? The light datablock I've been using has been based on the Original Stock model, although I think that refers to the original stock TLK model. What stock model are you referring to?
#4
08/04/2006 (10:10 pm)
Okay, never mind. I think I have things working the way I want them to. I switched to the Original Advanced model, and played around with some of the settings. I think I have it illuminating DTSs and DIFs in proportionate amounts.