Simulating neon bulb flicker with VEX

   2334   1   1
User Avatar
Member
28 posts
Joined: 5月 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
2627 posts
Joined: 6月 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 - 2020年11月15日 09:19:18
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links