Packageaway3d.animators.data
Classpublic class VertexAnimation
InheritanceVertexAnimation Inheritance AnimationBase

VertexAnimation defines an animation type that blends different poses (geometries) together to create a final pose.

Public Properties
 PropertyDefined by
  blendMode : String
[read-only] The type of blending to be performed by the animation.
VertexAnimation
Public Methods
 MethodDefined by
  
VertexAnimation
(numPoses:uint, blendMode:String)
Creates a new VertexAnimation object
VertexAnimation
Property detail
blendModeproperty
blendMode:String  [read-only]

The type of blending to be performed by the animation.

Implementation
    public function get blendMode():String
_numPosesproperty 
arcane var _numPoses:uint
_streamIndexproperty 
arcane var _streamIndex:uint
_useNormalsproperty 
arcane var _useNormals:Boolean
_useTangentsproperty 
arcane var _useTangents:Boolean
Constructor detail
VertexAnimation()constructor
public function VertexAnimation(numPoses:uint, blendMode:String)Parameters
numPoses:uint — The amount of poses to be blended together.
 
blendMode:String — The type of blending to be performed by the animation. The following values are supported:
  • VertexAnimationMode.ADDITIVE: The pose is generated from a base mesh and a number of additive "difference" poses.
  • VertexAnimationMode.ABSOLUTE: The pose is generated by a weighted average of a number of poses.
Init Parameters
Method detail
createAnimationState()method
arcane override function createAnimationState():AnimationStateBase

Factory method which creates an animation state specific to this animation type.

Returns
AnimationStateBase — A concrete subtype of AnimationStateBase that is specific to the concrete subtype of AnimationStateBase
deactivate()method 
arcane override function deactivate(context:Context3D, pass:MaterialPassBase):void

Clears the GPU render state that has been set by the current animation.

Parameters
context:Context3D — The context which is currently performing the rendering.
 
pass:MaterialPassBase — The material pass which is currently used to render the geometry.
getAGALVertexCode()method 
arcane override function getAGALVertexCode(pass:MaterialPassBase):String

Generates the AGAL Vertex code for the animation, tailored to the material pass's requirements.

Parameters
pass:MaterialPassBase — The MaterialPassBase object to whose vertex code the animation's code will be prepended.

Returns
String — The AGAL Vertex code that animates the vertex data.
Wiki link
Click to go to the wiki page for 'away3d.animators.data.VertexAnimation'

Code examples

Comments