Thursday, May 5, 2011

UDK - Lights that Flicker / Blink Independently Tutorial - Intermediate Level

Set this up with the parameter to the left at 1

Then create a material instance constant (right click on the material, choose material instance constant).  Create multiple material instances (as needed).  Change the scalar parameter to a random number close to 1 (1.2, 1.1, 1.15) for each one, even a small amount makes a difference.
Then as you add your selected mesh to the world multiple times, apply a different material instance to each.  
Hooray! 

And here is the result.  In this case, these pulse.  If you go look at some of the lights in UDK, you will find some flickering lights.  As long as you multiply "Time" by a parameter, you should be able to make your lights blink independently.

1 comment: