Creating spot lights
by Dae Young Moon · in Torque Game Engine · 04/23/2003 (6:40 pm) · 8 replies
Hi,
I've been trying to use fxLightDB to as a spot light. I changed it's light type to spot like so:
mLight.mType = LightInfo::Spot;
Plus I set the direction of the spot light in the registerLights function in fxLightDB like so:
mLight.mDirection = VectorF(0, 0, -1);
The corona texture will show up, but no spot light effects happen.
Does anyone have any experience with creating spot lights?
Thanks
I've been trying to use fxLightDB to as a spot light. I changed it's light type to spot like so:
mLight.mType = LightInfo::Spot;
Plus I set the direction of the spot light in the registerLights function in fxLightDB like so:
mLight.mDirection = VectorF(0, 0, -1);
The corona texture will show up, but no spot light effects happen.
Does anyone have any experience with creating spot lights?
Thanks
About the author
#2
10/10/2005 (7:32 am)
I'm not totally sure if spotlights are working out of the box. Maybe you should check the range of your light (maybe not high enough).
#3
10/10/2005 (12:24 pm)
I checked them, but they are not still working?
#4
10/10/2005 (3:21 pm)
If you want advanced lighting effects, the Lighting Pack from John Kabus is the thing to grab.
#6
I tried demo version of Lighting Pack from John Kabus, but I did not see any mounted spotlight.
The only spot light mounted on a vehicle is in warzone , in the demo there is plane that has mounted spotlights remember?
In the warzone demo It seems to be a volumetric lights mounted on a vehicle.
I decided to follow the same path and attached a volumetic light on the vehicle.
I solved most of the problems while tring to change to mounting volumetric light,
however the last one is the one I need help on.
Could you check this out for screenshots and help me on this problem.
Cheers
10/13/2005 (1:45 pm)
Hi all , I tried demo version of Lighting Pack from John Kabus, but I did not see any mounted spotlight.
The only spot light mounted on a vehicle is in warzone , in the demo there is plane that has mounted spotlights remember?
In the warzone demo It seems to be a volumetric lights mounted on a vehicle.
I decided to follow the same path and attached a volumetic light on the vehicle.
I solved most of the problems while tring to change to mounting volumetric light,
however the last one is the one I need help on.
Could you check this out for screenshots and help me on this problem.
Cheers
#7
10/13/2005 (2:43 pm)
Warzone used the Lighting Pack. I've never done spotlights, though. I thought it would be fun to have enemies with spotlight eyes, though.
#8
10/13/2005 (2:55 pm)
Lighting pack will do exactly what you want, with an example even included. Buy it now!
Torque Owner arda
is anyone able to use stoplights?