Flint Particle System Forum - Emitters not drawn unless Filter applied2010-12-25T16:13:40+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Emitters not drawn unless Filter appliedhttp://flintparticles.org/forum/comments.php?DiscussionID=33&Focus=148#Comment_1482008-05-21T13:32:53+01:002010-12-25T16:13:40+00:00robotzhttp://flintparticles.org/forum/account.php?u=21
I've been trying to get this working all morning, but to no avail - I think it's a bug (but it might just be the way I'm doing it)
I wanted to create a single FullStagePixelRenderer that had 10 ...
I wanted to create a single FullStagePixelRenderer that had 10 different emitters working on it.
I use a for() loop to create 10 emitters, setting random values.
When all of the emitters are started, only one of them appears rendered.
However, if you enable a filter on the renderer (such as blur), you can see all of the other emitters running.
Most confusing! Here is a zip file with the fla and AS code, ready to run.
/** * Mass Emitter Test * @author Richard Davey * @version 0.1 */
private function startEmitters():void { for (var i:uint = 0; i < 10; i++) { emitters[i].start(); } } } }
Any ideas anyone? I'm using Flint 1.0.2.
Cheers,
Rich]]>
Emitters not drawn unless Filter appliedhttp://flintparticles.org/forum/comments.php?DiscussionID=33&Focus=150#Comment_1502008-05-21T18:19:48+01:002010-12-25T16:13:40+00:00ericrhttp://flintparticles.org/forum/account.php?u=17
I believe this is because of the "hard-link" between emitter and renderer. Each Emitter assumes that it is the only emitter object associated with the Renderer.
The Emitter objects, in ...
The Emitter objects, in your case, grab the renderer and wipe out the previous canvas to draw their updated particles. If you specify a blur filter, however, then they don't wipe the canvas clean: they blur the old canvas and then draw on top of it.
Without the blur filter your 10 emitters are each clearing the renderer and drawing their particles in succession. Thus the last emitter to run is the only one whose pixels you would see represented.
I believe the concept of associating multiple emitters with a single renderer (and vice versa) is planned for the next version of Flint.
That said you could easily modify the current code to allow this to work (or even apply the blur filter without actually blurring anything)...]]>
Emitters not drawn unless Filter appliedhttp://flintparticles.org/forum/comments.php?DiscussionID=33&Focus=152#Comment_1522008-05-21T18:49:10+01:002010-12-25T16:13:40+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
It is as ericr says. Currently you need one renderer per emitter. The next version won't have this restriction.
Emitters not drawn unless Filter appliedhttp://flintparticles.org/forum/comments.php?DiscussionID=33&Focus=153#Comment_1532008-05-21T23:32:27+01:002010-12-25T16:13:40+00:00robotzhttp://flintparticles.org/forum/account.php?u=21
I'm both sad that I wasted a morning trying to get this to work, and extremely pleased the next version will cover it :)