Flash VR Effect 1.0
Today I am giving away a simple Flash VR file. You will need to create images at the various angles of your subject. Then simply import all of your images into this Flash file, adjust the speed to your tastes, and you will have a simple VR effect for the web or wherever.
Move your mouse to the right and the model will rotate counter-clockwise. Move the mouse to the left and the model will rotate clockwise.
Plan for further development include:
- adding vertical rotation
- smoother rotation
- on the fly updating (no need to have Flash to edit the content)
- a simple GUI
Model taken from 3dtotal.
All the ActionScript is on the first frame. It is as follows:
stop(); // Edit topSpeed to modify how fast the VR can rotate var topSpeed:Number = 2; var frameSpeed:Number; var frame:Number = _root._currentframe; // Functions, no need to edit these onEnterFrame = function () { frameSpeed = Math.round(topSpeed*(_xmouse-Stage.width/2)/(Stage.width/2)); newFrame = _root._currentframe+frameSpeed; if (newFrame>_root._totalframes) { newFrame = newFrame-_root._totalframes; } else if (newFrame<=0) { newFrame = _root._totalframes+newFrame; } gotoAndStop(newFrame); frame = _root._currentframe; };
Download the source code! [ 1.5M ]
Tags:
3D | cat | CD | code | Code | Flash | free | Freebies | macro | math | Tutorials | VR
Related Posts:
3000 Miles to the Trials | A Sound of Thunder Teaser | Ant Renamer Review | ASP List Directory 1.0 | ASP List Directory 2.0

