Page 1 of 1

Create Flicker Effect

Posted: Wed Nov 13, 2019 4:58 am
by grenno
I've had a look online and I can't find anything so thought I'd ask here.

Does anybody know the best way to create a flicker effect?

I essentially want an effect to flicker on and off like a strobe/flickering neon sign.

I've tried doing it mathematically using random/gate/hold but it's not just creating the desired effect of having it flicker on very quickly and for very short periods.

Re: Create Flicker Effect

Posted: Wed Nov 13, 2019 11:07 am
by visuality
Try this with a mask, you can always blur it if the line is an issue.
https://www.interactiveshaderformat.com/sketches/2276

Re: Create Flicker Effect

Posted: Wed Nov 13, 2019 4:01 pm
by Sadler
Perhaps you want something more sophisticated but a randomised transparency seems to be acceptable to me.
flicker.jpg
flicker.jpg (11.17 KiB) Viewed 7377 times
First Random controls the full ON/OFF flicker and the second the more subtle flickers. The offset controls the intensity and the threshold controls the amount of full ON/OFF.

Re: Create Flicker Effect

Posted: Thu Nov 14, 2019 9:08 pm
by damstraversaz
a nice tips Sadler !

Re: Create Flicker Effect

Posted: Fri Nov 15, 2019 5:39 am
by grenno
Visuality, I was hoping to get it to flash at random so that ISF isn't suitable unfortunately, thanks for you help though!

Sadler, after having a fiddle this has done the trick great. Thank you!!

Re: Create Flicker Effect

Posted: Tue Aug 24, 2021 7:03 am
by slackmage
heres another method I just came up with.
strobe_scene.png
strobe_scene.png (48.36 KiB) Viewed 4506 times
increase the ramp value to get it to strobe faster

Re: Create Flicker Effect

Posted: Tue Aug 24, 2021 7:05 am
by slackmage
here's how to toggle the strobe to toggle
strobe_toggle.png
strobe_toggle.png (23.44 KiB) Viewed 4506 times