Flint Particle System Forum - Dynamic Emitter Changes in Real Time Sun, 13 Jun 2010 12:18:18 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.4 & Feed Publisher Dynamic Emitter Changes in Real Time http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=258#Comment_258 http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=258#Comment_258 Fri, 18 Jul 2008 23:47:25 +0100 icd2k3
Basically what I'm trying to do is make an emitter thats properties can be updated in an enter frame. The best example I can give of what I'm trying to do is maybe the particles speed up or get bigger based on microphone input. Does anyone have any suggestions for updating emitter preferences in real time?

Thanks ]]>
Dynamic Emitter Changes in Real Time http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=259#Comment_259 http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=259#Comment_259 Sat, 19 Jul 2008 18:43:50 +0100 Richard
Both Activities and Actions are called every frame. Activities are used to update the properties of an emitter and Actions are used to update the properties of particles created by the emitter. Flint contains Actions to modify the size or speed of particles (Scale and Accelerate). Although these are not based on microphone input you could use them as a basis for creating your own actions that use microphone input to modify the speed and size of particles.

However, it may be that what you're actually after are custom Initializers. Initializers modify the initial state of new particles as they are created by the emitter. The initializer for size is ScaleInit and the initializer for speed is Velocity. You could create custom initializers based on these that will set the initial size and speed of particles based on microphone input. ]]>
Dynamic Emitter Changes in Real Time http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=262#Comment_262 http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=262#Comment_262 Mon, 21 Jul 2008 16:31:49 +0100 icd2k3
I have an enterframe where I can increment the speed, size, alpha etc, but when I try to increment the counter variable it doesnt seem to take. is the counter called every frame as well? Thanks again! ]]>
Dynamic Emitter Changes in Real Time http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=263#Comment_263 http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=263#Comment_263 Mon, 21 Jul 2008 19:51:50 +0100 Richard
The counter is called every frame but the nature of the Steady counter means that if you set its rate to zero, for example, it will never pick up again - it's optimised for speed and the new rate is picked up on when it emits another particle, not before. So you may need a custom counter too. ]]>
Dynamic Emitter Changes in Real Time http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=265#Comment_265 http://flintparticles.org/forum/comments.php?DiscussionID=54&Focus=265#Comment_265 Mon, 21 Jul 2008 20:07:53 +0100 icd2k3