Datasheet

28
Part 1: Getting Started
myDisplayObject.addChildAt(particles_ary[k] as Sprite, k);
}
}
function particleZSort(particle1:DisplayObject, particle2:DisplayObject):int
{
var zpos1:Vector3D = particle1.transform.matrix3D.position;
zpos1 = myDisplayObject.transform.matrix3D.deltaTransformVector(zpos1);
var zpos2:Vector3D = particle2.transform.matrix3D.position;
zpos2 = myDisplayObject.transform.matrix3D.deltaTransformVector(zpos2);
return zpos2.z - zpos1.z;
}
//Looping function
function myonEnterFrame(event:Event):void
{
myDisplayObject.rotationY += (CenterX - mouseX) * .01;
sortParticles();
}
Scaling (Basic Principles of Animation)
Many of the basic principles of animation, developed by Walt Disney, have their roots in scaling.
Scaling is the factor that adds realism to your 3D animations. For example, as a ball bounces against a
hard surface it should exhibit a squash and stretch effect (accomplished by scaling). Walt Disney and his
team of animators quantified the rules of cartoon animation. And no matter how great your images and
3D scenes are, if you don ’ t apply these principles, your 3D animations will appear lifeless.
Here ’ s a summary of Walt ’ s Rules of animation. Applying them will bring your 3D animations to life.
Squash and Stretch occurs when a soft object comes into contact with a hard surface. It deforms
proportionally to its velocity. The deformation exhibits both a squash and stretch, but its volume
is conserved. In 3D, x and z are the stretch axis and y the squash axis.
Exaggeration brings attention to an activity that ’ s being performed. Its motion is a little more
flamboyant than in real life, but it draws the viewers in and adds character to your animation.
Anticipation is the prep before the action. Prep - action before the action builds the excitement
for what ’ s about to happen. It ’ s one of the great secrets of animation. Every animation should
have anticipation injected in it – you should look for every opportunity to do so.
Follow - Through is the action after the action. Once the action occurs, such as throwing a ball, or
closing a car door, there ’ s follow - through. It establishes the personality of your character. It ’ s the
aftermath of an action that really sells it.
❑
❑
❑
❑
(continued)
c01.indd 28c01.indd 28 12/14/09 3:03:33 PM12/14/09 3:03:33 PM