home subscribe to email updates subscribe to RSS updates

Experiment: AS3 Bitmap Particles

I’ve seen this sort of thing done in a few places already but for some reason I’ve never tried it myself. We’ve all heard how great the BitmapData class is and been excited by the speed boosts that can be achieved… but just how fast is it?

Michael Battle - AS3 Bitmap Particles

Following on with the particle theme, I’ve written a script that creates many, many, many pixel-sized bundles of delight…

Drag the slider to manipulate how many particles are created per frame - it’s set at 30 frames per second. The counter at the bottom right shows you how many you’ve got on the screen at any given moment.

If you slide it all the way to 2000 and hold your mouse down at the top-center point of the screen, you should easily get over 80,000 particles happening. Pretty nifty!


« Experiment: More AS3 Particles
AddThis Social Bookmark Button

Related Posts:

Comments:

bartek said,

August 5, 2007 @ 10:56 pm

nice result for flash. It would be great to see falling pixels of a jpg image.

Carlos said,

August 6, 2007 @ 5:17 am

Really cool!
Next step, real time ray tracing 3d games rendered in flash? :)

cDima said,

August 8, 2007 @ 8:11 pm

Dude you rule.

sanjay tomar said,

August 10, 2007 @ 7:34 pm

very very very very very very very very best

Tutu said,

August 19, 2007 @ 9:20 am

Very nice!

JP said,

November 26, 2007 @ 5:37 am

Why not releasing the sources of your experiments? This is not top secret code and can help a lot.

Michael said,

November 26, 2007 @ 6:08 am

Hi JP - I’m usually happy to release the source… I’ve done so in a number of places but usually only after it’s been requested (unless it’s specifically but together as a tutorial).

This site is more about sharing the ideas than sharing the code - though if there’s something specific I can assist you with, please let me know.

zap said,

November 26, 2007 @ 8:47 am

fantastico

enjydasilence said,

December 13, 2007 @ 1:02 pm

Holy Shit!! ^o^!

llops said,

December 15, 2007 @ 3:54 am

Hi Michael, great experiment!

If you like this kind of samples, I’ve some particles experiments in my blog (in spanish, sorry :) )
One example

redo sama the egg said,

January 4, 2008 @ 7:24 am

hoooaaaoo esoes muy bueno gran experimento, me agrado mucho y me dio ideas grasias y otraves gran experimento..

Mediakid said,

January 20, 2008 @ 6:45 pm

Wow ! this is the fastest AS3 bitmap effect I have been seen,
so much curious how you make this happen.

Can you tell about the basic processes a little bit?
Are you record all the pixel position in Array, or just directly manipulate the
points in bitmapdata ?

But its just totally fine if you dont want to talk more, just ignore me.

Michael said,

January 21, 2008 @ 5:30 am

Hey Mediakid - don’t worry, I’m totally happy to talk more!

Yep - you’re pretty much spot on. I just made a class that held the x/y coordinates, the colour and a few functions that handled the movement. Then I just iterate through an array each frame and draw the particle to a pixel on the Bitmap.

Glad you like it :)

RSS feed for comments on this post · TrackBack URI

Leave a Comment



« Experiment: More AS3 Particles