Simulating neon bulb flicker with VEX

   2077   1   1
User Avatar
Member
28 posts
Joined: May 2020
Offline
I am looking for a really simple way to cause the value in my RS_Incandescent shader to randomize in quick intervals, simulating the flickering pattern of a neon bulb. I was looking at some noise functions, but I don't see a way to control them to make them do what I want. Also I'm still kinda green in VEX.

Any ideas are appreciated!
Fabio Basile - 3D Artist

https://www.behance.net/fabiobasile [www.behance.net]
User Avatar
Member
2535 posts
Joined: June 2008
Offline
You could use an hScript expression in the intensity field. Try something like this…
fit01(rand($Frame), 0.15,1.15)
This will give you a random value per-frame between 0.15 and 1.15. Adjust values as needed.
Edited by Enivob - Nov. 15, 2020 09:19:18
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links