SpotLight
by Fucifer · in Torque Game Engine · 04/12/2007 (1:33 pm) · 8 replies
In light datablock everything is work good except I need some understanding. If I leave this line SpotLight = "1"; it will shine on any dts in front but not dif and terrains. Why is that? I am thinking of real spot light which will shine on anything in front of it. If I change it to this SpotLight = "0"; it will shine on everything in front but does not blend well on the terrain.
#2
04/13/2007 (5:04 am)
Yes I am using TGE 1.5.1. I am mounting the spotlight so the scene should get relight when the mission start. You talking SpotAngle = "120"; that the only I see in sgMountLight.
#3
04/16/2007 (5:39 pm)
Its because the light is probably dynamic. Dynamic spotlights have limited support and any light cast by a dynamic source will not look as well as a static source.
#4
04/17/2007 (5:16 am)
The className is sgUniversalStaticLightData, If it is dynamic light. How do I change to static?
#5
If you don't want the light to move then you should make it static by ensuring StaticLight is 1.
Also, it is usually easier to use the Light Editor in engine to create/edit your light datablocks.
04/19/2007 (5:08 pm)
Why are you mounting the light? Is it a static, non-moving light or do you want it to move with a DTS?If you don't want the light to move then you should make it static by ensuring StaticLight is 1.
Also, it is usually easier to use the Light Editor in engine to create/edit your light datablocks.
#6
04/19/2007 (5:17 pm)
I am mounting the light to a car for headlights. The StaticLight is set to 1. It look oustanding except it will not light the terrain or dif.
#7
04/19/2007 (7:49 pm)
Sorry, I misunderstood your goal. You will want the light to be dynamic (StaticLight = 0) if the car moves, but it cannot be a spotlight. It must be a regular omni-point light, as dynamic lights cannot be spots in 1.5. There's not much that can be done about this, unfortunately.
#8
04/20/2007 (10:32 am)
Thanks!
Torque Owner Ross Kabus