
Q4: Linking flares to flickery lights
Q4: Linking flares to flickery lights
Sorry if this is a bit of an easy one, but I've been searching in a number of places and can't find how to make a flare flicker in sync with a light. Thanks in advance 

I don't have specifics.. but when I did this in Doom3, I had to match the light texture to the actual flicker.. So to do this with a flare, I'm guessing you need a flare texture that flickers.
However, if it's a relatively FAST flicker, the fact that the flare doesn't follow the change might not be annoyingly obvious..
However, if it's a relatively FAST flicker, the fact that the flare doesn't follow the change might not be annoyingly obvious..
You may be able to find something digging in q4dm9 - it has some of these on the rail curves, mh room jump pad and in other places (the red chiclet lights).
In a nutshell - they're made of
-a light whose shader depends on some "sound" parameters, and has a sound shader attached to it (s_shader key),
-a generic flare (i.e nothing special about it),
grouped together.
according to iddevnet :
In a nutshell - they're made of
-a light whose shader depends on some "sound" parameters, and has a sound shader attached to it (s_shader key),
-a generic flare (i.e nothing special about it),
grouped together.
according to iddevnet :
sound: The current sound amplitude of the entity using this material. This is used to create light materials that pulse with the sound.
You want to use the "combine" function. Create a light entity, give it a light shader that blinks/flickers (using a sound-modulated shader and applying a buzzing/popping sound works well for this), create your flare quad and position it near the light, then select the light first and your flare second, then use the "combine" menu function to combine your flare into your light. I'm not exactly positive what is going on under the hood, but your flare quad will become a part of the light entity definition, and it will flicker in tune with your light.
It's been a while since I did that, though, I hope I am remembering the process correctly.
It's been a while since I did that, though, I hope I am remembering the process correctly.
Really? Thats odd, they animate for me in the editor, I've viewed them before... Strange? I do remember having to refresh the entire scene before it would work though.Kaz wrote:It's "material animation". I'm talking about the flare not actually flickering in the editor, while it does in-game. Several other people I've talked to have had the same issue.