Flint AS3 Particle System
11th February 2008
I haven’t posted much for the past month because I’ve been using my meagre free time to create an open source particle system library in AS3. I’m pleased with the results and I’m ready to let it out of its cage for others to play with.
Here’s three examples of the sort of thing that can be produced using this library.
Flash required: You need version 10 or later of the free Flash player from Adobe to use this content. To download and install the free player from Adobe's web site click here.
My aim with this project is to create a library that handles the common functionality for all particle systems, has methods for common particle behaviour, and lets developers extend it easily with their own custom behaviours without needing to touch the core code.
The current version as 0.9. It seems stable but there’s a few more features I want to add, more testing I want to do, and I’d like to get more feedback from users before declaring a 1.0 release. So if you’re interested in this sort of thing then please try it out and feedback below or directly to me.
I’ll create a tutorial in the next few days. Meanwhile, there’s source code, examples and documentation on the Flint website and on Google Code.
16 Comments add your own
Nice work!
Nate Chatellier | 12th February 2008 at 02:42
Looks cool and promising.
pin7 | 13th February 2008 at 14:44
I made a class in your zone package in order to use a bitmap as a zone. The particles will not be create on a transparent part, this means you can use all the shapes you want for your particle emitter zone.
It’s not optimize and it was simple to do, but seems to work well and it can be usefull (at least for me :p).
I will try to send it to Flint (if i find his mail somewhere) or just send me a mail at : [email hidden]
Elzean | 15th February 2008 at 12:27
And i almost forget, thanks a lot for sharing that, it’s a really nice work
Elzean | 15th February 2008 at 12:28
Julien
Please do send me the class. It sounds very useful and I’d like to include it in the next update.
I’ve sent you a private email so you know where to send it to.
Richard
richard | 15th February 2008 at 13:28
Ok, i finally finished my first test :
http://www.login-street.com/julien_tonsuso/FirelightCreation/
I just add the removeFilter function in the BitmapEmitter class. (already send you by mail).
Elzean | 15th February 2008 at 19:25
Ho and i was just thinking that it should be easy to put any displayObject (Sprite, MovieClip, …) as a zone.
Elzean | 15th February 2008 at 19:38
i update my test again, before with “steady(600)” even without blur i was really slow. I add a fonction to upgrade my fps, its working only in some situations, but for my exemple i can now have a “steady(2000)” with blur and i steel have a better fps than before
Elzean | 16th February 2008 at 05:30
There’s now a DisplayObjectZone and a BitmapDataZone checked into svn. They’ll also be in the next download when I get that out.
richard | 16th February 2008 at 12:17
Couldn’t you put all the transparent points found in the first loop in an array and just take a random index in the getLocation().
The getLocation can be slow if the picture is a lot transparent, and i read the getPixel32() is not really fast too.
I also work a little in a way to group all the particules with the same comportement in a group in order to improve performance, that was the idea, its actually working for me, but i should find a better way to do it.
Elzean | 16th February 2008 at 13:16
getLocation returns fractional numbers, but the first loop to calculate the area is based on uints only. So it would require the compromise that getLocation always returns an integer point. I guess that wouldn’t matter if the speed increase is worth it, which it probably is.
richard | 16th February 2008 at 16:14
hi! i translated the documentation about the library at http://www.fuoridalcerchio.net/wordpress/tutorials/flintparticle/
i hope this doesn’t bother you. please let me know if you need an italian translated reference to the lib.
thank you.
valentino | 18th February 2008 at 16:14
Hi Richard,
Really nice work!
Played around with it and got some nice stuff.
Check it out at http://www.actionscripter.nl
sandersnake | 21st February 2008 at 15:25
Very nice. I like that a lot. If you want to distribute the source code I can put it in the examples on the Flint website or you can just post it in the forum on the site.
richard | 21st February 2008 at 15:36
Hi! I made a tutorial for making a Basic Starfield with Flint System. Some more are coming.
Check it out at http://www.fuoridalcerchio.net/wordpress/2008/03/09/creating-a-simple-starfield-with-flint-particle-system/
Enjoy!
valentino | 10th March 2008 at 09:51
Man does that look awesome, I love the colors and symmetry, one of the many reasons I love particle coding so much. Thanks for sharing, excellent job.
Porter | 23rd October 2009 at 06:41
Leave a Comment comment policy
XHTML: you can use these tags - <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>Subscribe to the comments via RSS Feed