Game Development Community

Mountable Light Abilities?

by SqHd · in Torque Game Engine · 02/09/2006 (10:05 pm) · 2 replies

Hello,

I was wondering if mountable lights affect the lighting / shadows of '.dts' shapes and /or '.dif' interiors dynamically. I'm asking b/c it seems to me there's a difference between the IGC video and the TLK 1.4 demo. (Of course, I'm new to this so most likely I just don't understand.)

In the IGC TLK demo video there is a swinging spotlight over some barrels. The shadows of the barrels move according to the lights movement. (I think the barrels brighten as the light shines on them as well, but I couldn't quite tell.)

Anyway, in the actual TLK 1.4 demo there is a swinging spotlight. When I park the orc underneath it, his shadow / lighting doesn't change according to the light nor does the light on the walls and floor.

Thanks for your time and great job on the 1.4 release.

Kerry

*Bonus question * Will there be an update of 'sglightingscale' entity for map2difplus?

#1
02/10/2006 (6:01 am)
Hi Kerry,

The TLK demo mission shows how to combine static and dynamic lights together for better results. TLK doesn't cast dynamic shadows from interiors and terrain (only DTS objects), dynamic spotlights also only work on DTS objects, so just using a dynamic spotlight will look a little odd unless it's focusing mainly on DTS objects.

In the demo mission you can open up the Light Editor and select the sgMountLight, this is the dynamic light attached to the swinging light DTS - then change the radius to 4 and the light's effect will become more pronounced.


Here's a little trick to creating a dynamic spotlight (these won't illuminate interiors and the terrain) - change the light to 'Static', enable 'Spotlight', and then change it back to 'Dynamic'. Unlike previous TLK versions the Light Editor won't automatically change the light back to a point light when put in dynamic mode, so you can force it to create a dynamic spotlight.


There maybe an update to map2dif+ after it settles down and becomes more stable.

-John
#2
02/10/2006 (10:38 am)
Cool! I just tried it out in the demo. The '.dts' shapes and their shadows changed according to the light just like in the video.
Thanks for taking the time to explain.

Kerry