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!
Simulating neon bulb flicker with VEX
2343 1 1- fabiobasile
- Member
- 28 posts
- Joined: 5月 2020
- Offline
- Enivob
- Member
- 2629 posts
- Joined: 6月 2008
- Offline
You could use an hScript expression in the intensity field. Try something like this…
This will give you a random value per-frame between 0.15 and 1.15. Adjust values as needed.
fit01(rand($Frame), 0.15,1.15)
Edited by Enivob - 2020年11月15日 09:19:18
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
-
- Quick Links