nullthing

title.swf
Just another WordPress weblog

Circle Packing_2

cpack.jpg

I finally got around to getting this to work in flash. Its based on a great processing model here:Crickets Chirping. I think it could be used as a pretty interesting interface. We have a couple of ideas that we are throwing around for this. It was fun to finally sit down and sort it out. The speed difference between java and flash is pretty amazing. The processing code runs the packing algorithm 50 times per frame, I run it 5. The accuracy is fine for our needs, but the difference is crazy.

Source:  circlepack.fla

3 Comments so far

  1. sean February 17th, 2009 10:23 am

    Hi thanks for checking out my processing code – I’m surprised that flash is only running 5 fps. It should be a *lot* faster than processing.

    I also dig your blog header, though I think it (perhaps in combination with this circle packing .fla) is pegging my CPU :)

  2. jason February 23rd, 2009 5:18 pm

    dear nullthing,

    i think if you change your counter in your collapse/collide movie from “j=0″ to “j=i+1″ it helps to speed it up a bit.
    this way when it calculates its position it doesnt do redundant calculations.
    it still doesn’t run as fast as processing…but it helps.

  3. Willa April 26th, 2009 4:20 pm

    Thanks for writing this.

Leave a reply