Game Development Community

Assign objects not to receive lights

by Ron Hasson · in · 02/08/2006 (9:17 pm) · 3 replies

In a mission file with sgLights (shadows and dts turned on) , is there a way to set particular dts objects to:

1) Not receive sglights nor cast shadow
2) Not receive any sglights.

Thanks

#1
02/09/2006 (7:26 am)
Hi Ron,

In TLK 1.4 you can disable the dynamic DTS shadows per object (using the Mission Editor, in the object's Lighting rollout panel).

As for not being illuminated by certain lights; TLK works the other way around, you can tell the light not to illuminate DTS objects and then assign the light (using the light object's name) to the DTS objects you want it to illuminate (see "Linked Lighting" in the Modeler's Guide for details).

Linked lighting is extremely flexible and allows you to place DTS objects in the shadow of other objects, including other DTS objects. :)

-John
#2
02/19/2006 (11:44 am)
Hi John,


"..assign the light (using the light object's name) to the DTS objects you want it to illuminate "

Can you explain how to do that? After reading Linked Lighting, I still don't quite understand how.
#3
02/20/2006 (8:39 am)
Sure. If you set a light to not affect dts objects (disable the Affect DTS property), it will not directly affect them (though they will still receive some environmental lighting from the interior or terrain).

Next give the light object a unique name in the mission editor, and enter that name into a DTS object's LightGroup property in the mission editor. Now that object is directly lit by the light while no other objects are - this effect is great for faking shadows falling on DTS objects by excluding the objects that fall in a shadow.