Page 1 of 1
point me to the post about lightning color
Posted: Sun Dec 22, 2002 4:39 am
by General_DisArray
i know i saw a post about changing the color of the lightning!
where oh where has it gone? please point me oh gods of the forum.
Polythe?sm
Posted: Wed Dec 25, 2002 2:40 pm
by jv_map
Posted: Wed Dec 25, 2002 10:39 pm
by General_DisArray
i appreciate that.
but i meant lightNing. not lighting. i have read all of those posts. very helpful..
but i was wondering about realistic lightNing. my flashes are sort of blue. not bright white or even gray. does suncolor and ambientlight contribute to the color of lightNing or does the color of my skybox?
Posted: Thu Dec 26, 2002 8:48 am
by jv_map
Ops misread that

.
If you're using global/weather.scr, your flash colour will always be 0.9 0.9 0.9, where 1 1 1 is white and 0 0 0 is black.
If it looks blue it's either your monitor or your graphics card that does so

Posted: Thu Dec 26, 2002 2:20 pm
by General_DisArray
is the .9 .9 .9 is that inputed into the worldspawn or is that just automatic when using the rain texture?
and if it is inputed into the worldspawn, how can you change the default?
Posted: Thu Dec 26, 2002 4:29 pm
by Innkeeper
The color is set in 'weather.scr', it temporarily sets the world farplane color to this value which is obviously white, during the flash, 90% as bright as it can get. After the flash, it restores the world farplane color to the level farplane color, which is set by the initial world farplane color. This is interesting to know, because if you set the level farplane color and use the 'weather.scr', what you enter for the level farplane color will never be used.
To change the color of the lightning you would have to write your own weather script.