wave sin .75 .25 1 1 ?


(smurkin) #1

Hi fellers

“style1rgbGen” “wave sin .75 .25 1 1”

I’m trying to build in some flicker to my lighting. Problem, is the above gives more of a slow blinky light…I want something “bad connection”…rapid flickering…if anyone could explain these variables…that would be cool…

tnx…smurkin gherkin :banana:


(smurkin) #2

update: I figured out these variables from the shader manual…I think I need a sawtooth…however changing sin to sawtooth seems to have had no effect (this is for a “faulty neon light” flicker effect)…

I am wondering if I have used style1rgbGen incorrectly…it seems to have been added as a key for the actual light itself & not been appended to the worldspawn entry at the top of the .map file ?

One other query…I wanted to build in an even, rythmic “flicker” to complement a light source over a slow fan…is it right that there is only one type of flicker built into q3map2 atm ?

Thanks

Smurkin Gherkin


(GlassMan) #3

For the random flickering you could try a noise wave. This one is from ydnar’s sample map.

wave noise 0.5 1 0 5.37

edit->
You can have different styles by using
style1rgbGen
style2rgbGen
style3rgbGen etc
in the worldspawn. Then assign “style” “1”, “2”, “3” etc to your lights.

For the fan I would have thought a fast sine wave would be ideal or a square if you want it to suddenly cut in & out.


(smurkin) #4

Something isn’t workin for me here…

I’ve got

{
“classname” “worldspawn”
“style1rgbGen” “wave noise 0.5 1 0 5.37”
// brush 0
{

and

// entity 24
{
“origin” “2046 -88 -704”
“_color” “0 200 50”
“light” “150”
“classname” “light”
"style " “1”
}

with q3map2 2.5.11 (2003-12-01) & -nocollapse under the light option

but there is no discernable change in the flicker that I can tell :frowning:


(GlassMan) #5

Should be _style1rgbGen with the underscore


(smurkin) #6

Thanks m8. I finally got my hands on the demo map. The style on the lower level, inside, looks prmising for the fan…and the blinking windows looks excellent for my faulty light :banana: .