Jan 3

Still delving into metaballs. I implemented the suggestions in this page for optimizing, and the results are good. I could even animate it - just barely though, at ~15 FPS on my browser. :)  Again, most of this is just copy & paste from the source provided in the tutorial.

Metaballs - move your mouse around.  Click to change the target ball.

Still looking for a more elegant solution for Flash. This is done on a very small stage size, with only 4 balls. I want to do a full screen version, with at least 10 balls moving around. :P


Jan 2

I stumbled upon Metaballs yesterday, and decided it would be cool to try it out. I’ve seen some very nice examples done in Flash, but no luck finding their sources.

After Googling around, I found this tutorial on Metaballs and computer graphics.

I ported the code into AS3, but the result is not very impressive. It is very slow and processor heavy. If you click on the stage, the last Metaball added will be moved, and as you can see, it takes a bit of time to redraw them. I’m not even thinking about animating this. :P

Metaballs

I’m still looking for a more elegant solution for Flash, hopefully one that uses the Vector-based drawing API of Flash, and not BitmapData.

UPDATE: I have an updated version here. Also, I linked the image above to the updated one. For comparison, the old one is here.


Oct 26

It’s been a while since I’ve posted here. Got caught up with exams and projects for school, and a lot of DotA with friends. Now sem-break is here, I  can now just sit around and be bored.

I’ve been playing around with Papervsion lately, and have finally understood how to make it work, albeit only lightly. Here is one of my first attempts with Papervision. It’s just a bunch of spheres, where clicking on one will move the camera to its position, while the camera focuses on the center.

It’s not much. I’m still working on it, but I just wanted to post something here. Check it out. Flash Player 10 is required.

Floating particles

Update: I’ve added a depth of field effect. It’s not very “accurate”, but it’s a nice touch. I don’t know how to do it efficiently, so it might be CPU intensive.

Update 2: I’ve added random movement to the particles.

As always, the source.