3D DistortImage Photo Stack

Here is another UI construct that I came up with while playing around with the great DistortImage class that I’ve posted about before. It creates a stack of photos which you can click on to make them center themselves. This involved using both Fuse and some custom onEnterFrame animations. I didn’t take it very far but it could be a cool interface idea. Click on the image to see it in action and you can download the source here.

Lee


Big Spaceship Launches Visualizer Tool!

The folks at Big Spaceship have released an open source version of their internal Visualizer tool that they used to create the Nike Air site. Give it try and you will find that you can spend hours in here tweaking things! Thanks so much to Big Spaceship for sharing some of your expertise.

Lee


Distort Image Transform Tool

So to continue on the topic of DistortImage, I built a tool that lets you drag the four corners of a photo and the setTransform() code is automatically generated for you. So all you need to do is find a good starting point and an end point and simply tween between the two to create a cool 3D animation.

Lee


The Incredible Distorting Image

You can distort MovieClips in Flash 8 using the Matrix class. But this will only allow you to do skewing and not true 3D perspective. Well there is a great 3D Actionscript library called Sandy that allows for real 3D effects. One of the classes is called DistortImage and it does just what its name implies. You give it four points and it will strech and skew your MovieClip anyway you want. In the example below I used Fuse to animate those four points so the distortion is constantly moving. I also added a slider which controls the speed of the animation. This is cool stuff so be sure to check out Sandy! The AS code is also listed below.

[as]import flash.display.BitmapData;
import sandy.util.DistortImage;
import com.mosesSupposes.fuse.*;

ZigoEngine.register(Fuse, PennerEasing, FuseFMP);
var fakes:Array = new Array();

var sp:Number = 1;

for(var i=0;i<4;i++)
{
fakes.push(this.createEmptyMovieClip(“f”+i,i+10));
}

var bmd:BitmapData = new BitmapData(photo._width, photo._height);
var clip:MovieClip = this.createEmptyMovieClip(“holder”, 1);
var di:DistortImage = new DistortImage(clip, bmd, 5, 5);
di.texture.draw(photo);
di.setTransform(25,33,80,45,67,23,9,23);

function moveFakes():Void
{
for(var i=0;i<4;i++)
{
var f:Fuse = new Fuse();
f.push({target:this["f"+i],x:Math.random()*Stage.width, y:Math.random()*Stage.height, time:sp, ease:”linear”});
if(i == 0) f.push({func:moveFakes, scope:this});
f.start();
}
}

this.onEnterFrame = function()
{
di.setTransform(f0._x, f0._y, f1._x, f1._y, f2._x, f2._y, f3._x, f3._y);
di.texture.draw(photo);
}

moveFakes();

var sl:Object = new Object();
sl.onChange = function(ev)
{
_root.sp = ev.value;
}

speed.addListener(sl);[/as]

Lee


Flash Video Streak Tool

At this past Flash Forward, one of the coolest things I saw was this internal tool that Big Spaceship created for one of their Nike sites. It had a video loop running where you could add blurs and partcile effects. This is extrememly helpful in finding the right settings for an effect. A tool like this could be handed to a designer who could “turn the knobs” and find the right look and then the developer could just plug in the numbers. Below is my incomplete attempt at replicating the tool. I rendered the video loop from Poser.

Here is the source.

Lee


11 - 15 of 50 Prev 5Next 5