Posts Tagged ‘Actionscript’

OSX genie-like effects with Flash and Papervision3D

Thursday, August 19th, 2010

I made a nice little transition effect this week that’s a bit similar to the genie effect on OSX. It’s basically just made with a Papervision3D plane and tweens for every vertices composing the plane. Open the swf and play with all the different easing equations to create a different look and feel.

OSX genie effect with Flash

Click to open SWF

Download the source files.

Reproducing the Labuat brushstroke effect…

Thursday, March 4th, 2010

This week i had a stint at trying to reproduce the brushstroke effect as seen on the famous labuat website, winner of the FWA’s 2009 people’s choice award. The tricky part was getting that same smoothness in the curves but i’m pretty happy with the results i got so far. For kicks, i also added some animation and velocity to the brushstroke.

Brushstroke with velocity

Click to open SWF

Labuat brushstroke

Click to open SWF

Download the source files.

It was a nice continuation from the previous work i did on the 25 lines of code contest. I’m gonna thinker a little bit more with the code and post more advanced experiments later on.

Playing with constraints in AS3 with the physics engine APE.

Friday, February 5th, 2010

Playing with a physics engine is so much fun. Be careful not to drag the cube too fast or it might break out.

SpringConstraints in APE

Click to open SWF

Download the source.

Simulating liquid with actionscript 3 and physics engine APE.

Tuesday, June 16th, 2009

I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it’s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to show you how it’s done.

Click to open SWF

Click to open SWF

I quickly looked at some reviews to make my choice on the physics engine i would use and APE seemed to be the simplest one. It was pretty simple indeed as i was able to put up my original demo in a single day. It was a little tricky to create the physics bottle that would hold the particles. The easiest way i found was to put movieclips on stage in the shape of the bottle and loop through each pieces and create a corresponding APE RectangleParticule. The tricky part is that when you rotate a movieclip in flash, the height and width of the clip changes, so i had to nest a movieclip within to be able to read the correct height and width of the particle.

Download the source