Jump to content
Sign in to follow this  
katipo66

#lightpoint with flare effect

Recommended Posts

Ok this is probably one for the too hard basket as even the Wiki is asking for examples :P

The shaft on the vehicle headlights:

flare1.jpg

Is that some particle model attached or is it acheived with #lightpoint settings?

So i have this setup going on with the following code:

light1 = "#lightpoint" createVehicle position auto1;
light1 setLightBrightness 10;
//light1 setLightAmbient[0,0,0.0];
light1 setLightFlareSize 100;
light1 setLightColor[1.0, 1.0, 1.0];
light1 lightAttachObject [auto1, [0,0,0]];

light2 = "#lightpoint" createVehicle position lightcone1;
light2 setLightBrightness 15;
light2 setLightAmbient[-0.01,-0.01,-0.01];
//light2 setLightAmbient[-0.2, -0.1,-0.1];
//light2 setLightAttenuation [-0.01,-0.01,-0.01,-0.01];
//light2 setLightIntensity 1;
light2 setLightColor[1.0, 1.0, 1.0];
light2 lightAttachObject [lightcone1, [0,0,-22]];

but cannot seem to get any beam effect for the light attached to darter, i understand that there maybe some distance parameter but its not there from any distance:

no_flare.jpg

Ive gone deep into places no bro should ever go and found these sort of things:

flareBright[] = {1,0.3,0.3,0.3,0.3,0.4,0.4,0.05,0.03,0.12,0.05,0.08,0.05,0.2,0.2,1};
flarePos[] = {0,0,0.37,0.47,0.5,0.54,0.62,0.72,0.75,0.91,1,1.084,1.13,1.29,1.62,1.68};
flareSizeCam[] = {0.2,0.4,0.025,0.05,0.042,0.043,0.04,0.75,0.6,0.7,0.15,0.85,0.44,0.45,0.55,0.1};
flareSizeEye[] = {0.2};
flareSizeEyeSun[] = {0.4};

But im thinking im wasting time if its actually some some alpha transparent particle model??

Other than that im quite happy with the effect although it would be nice to reduce ambient light thingy effecting surrounding area so its more focused, i think my attachto height parameters may also have some effect?

Any clues? or i guess what im really wanting is the headlight effect.

Edited by Katipo66
shaft as better description

Share this post


Link to post
Share on other sites

The thing is... "#lightpoint" creates a pointlight, not a spotlight.

Only spotlights have that beam. Pointlights only get a flare effect.

Sadly there is no "#lightspot" available as standalone object.

You could however try to use a prexisting lamp and attach that to your darter.

Share this post


Link to post
Share on other sites

Ah yes, i thought of something like that, you mean like one of those industrial lamps.. ok ill give that a crack, thanks!

Ill probably be back to ask how to make it face down, but thats probably the setvector dir thingy, all good, i love attachto :D

Share this post


Link to post
Share on other sites

Actually it's "setVectorUp" :)

Share this post


Link to post
Share on other sites

Thanks again, i probably would have wasted 20mins trying to figure that one out :D

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×