Sunday, March 25, 2012

Emitting Particles At Fixed Intervals

Emitting particles at fixed intervals is primarily achieved by using the Modulo node.  By Modulo-ing our Current Time by a value of 48, we generate a looping set of numbers 0, 1....47, 48, 0, 1...47, 48, etc.

In order to emit our particles for only 3 frames, we can test the result from Modulo, and see If it is Less Than or Equal to 3.  If it is we emit 1000 particles (per second), if not 0.