Getting light flares to work in Torque 3D
by Jeremiah Luebke · in Artist Corner · 05/10/2010 (4:17 pm) · 6 replies
So I have a simple dilemma, I have a static mesh which is a car sitting in my level and I have two spotlights to make the car look like its headlights are on. However If you look at the car where the headlights are, all you see is the texture of the headlight. So how do I replicate that bright flare that headlights produce when they are on? For whatever reason when I select a flare type for the spotlight nothing happens.
#2
05/18/2010 (3:02 pm)
I appreciate the reply,I don't understand what you mean by "defining" the flareType, however I get no errors in the console when I try to add a flare to the light. When I have the light selected I go under MISC and choose a flareType, there are 6 types to choose from but none of them work.
#3
Can you post the type of light used (point, spot), the console.log file and if you're in Advanced or Basic lighting mode?
05/19/2010 (12:44 am)
If you can choose it in the list, then your flareType exists and so was defined earlier.Can you post the type of light used (point, spot), the console.log file and if you're in Advanced or Basic lighting mode?
#4
Also when looking through the console file I could not locate anything to do with flaretypes or spotlights that would cause it not to work. My only guess at this point may be that when it tries to find the flare textures it is looking in the wrong place and therefore it doesnt load up.
if you still want me to post the console file I can just reply to this first and let me know
thanks
05/19/2010 (1:42 pm)
I am using spotlights, with advanced lighting and all post FX are on. I dont know if iI should post the console file here. there are like 1200 lines of things(no not all errors). Also when looking through the console file I could not locate anything to do with flaretypes or spotlights that would cause it not to work. My only guess at this point may be that when it tries to find the flare textures it is looking in the wrong place and therefore it doesnt load up.
if you still want me to post the console file I can just reply to this first and let me know
thanks
#5
05/19/2010 (2:35 pm)
Maybe you could try moving the light mount points away from your vehicle. If they are too close or are directly on the model, the flares might become hidden.
#6
05/20/2010 (1:49 pm)
Flares on SpotLights work for me... though they attenuate just like point lights ( flare is fully visible with the light's cone facing directly away from you ).
Torque 3D Owner Nicolas Buquet
The flaretype object is itself a datablock that must be defined first. See in "core/art/datablocks/light.cs" for the standards flare types.
The flaretype object points to an image which is a flaretexture. Be sure that this image is available.
Look into your console.log to find any error relating to your light or flare.
Nicolas Buquet
www.buquet-net.com/cv/