| Package | org.papervision3d.objects.parsers |
| Class | public class DAE |
| Inheritance | DAE DisplayObject3D DisplayObjectContainer3D flash.events.EventDispatcher |
| Implements | IAnimatable, IAnimationDataProvider |
Typical use case:
var dae :DAE = new DAE(); dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, myOnLoadCompleteHandler); dae.load( "path/to/collada" );
Its possible to pass you own materials via a MaterialsList:
var materials :MaterialsList = new MaterialsList(); materials.addMaterial( new ColorMaterial(), "MyMaterial" ); var dae :DAE = new DAE(); dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, myOnLoadCompleteHandler); dae.load( "path/to/collada", materials );
Note that in above case you need the material names as specified in your 3D modelling application. The material names can also be found by looking at the COLLADA file: find the xml elements <instance_material symbol="MyMaterialName" target="SomeTarget" />. The material names are specified by the symbol attribute of this element.
A COLLADA file can contain animations. Animations take a long time to parse, hence animations are parsed asynchroniously. Listen for FileLoadEvent.ANIMATIONS_COMPLETE and FileLoadEvent.ANIMATIONS_PROGRESS:
var dae :DAE = new DAE(); dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, myOnLoadCompleteHandler); dae.addEventListener(FileLoadEvent.ANIMATIONS_COMPLETE, myOnAnimationsCompleteHandler); dae.addEventListener(FileLoadEvent.ANIMATIONS_PROGRESS, myOnAnimationsProgressHandler); dae.load( "path/to/collada" );
| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number = 1 | DisplayObject3D | |
![]() | autoCalcScreenCoords : Boolean | DisplayObject3D | |
| baseUrl : String Base url.
| DAE | ||
![]() | blendMode : String = "normal" | DisplayObject3D | |
![]() | children : Object
Returns the children object.
| DisplayObjectContainer3D | |
| COLLADA : XML The loaded XML.
| DAE | ||
![]() | container : ViewportLayer | DisplayObject3D | |
![]() | culled : Boolean
[internal use] Is this object culled by camera frustum?
| DisplayObject3D | |
![]() | cullTest : Number = 0 | DisplayObject3D | |
| DEFAULT_LINE_COLOR : uint = 0xffff00 [static] Default line color for splines.
| DAE | ||
| DEFAULT_LINE_WIDTH : Number = 0 [static] Default line width for splines
| DAE | ||
| DEFAULT_TGA_ALTERNATIVE : String = "png" [static] Alternative file-extension for TGA images.
| DAE | ||
| document : DaeDocument
The DaeDocument.
| DAE | ||
![]() | extra : Object
An object that contains user defined properties.
| DisplayObject3D | |
![]() | faceLevelMode : Boolean [static]
This allows objects faces to have their own containers.
| DisplayObject3D | |
![]() | faces : Array
[internal-use]
| DisplayObject3D | |
| filename : String The filename - if applicable.
| DAE | ||
| fileTitle : String The filetitle - if applicable.
| DAE | ||
![]() | filters : Array | DisplayObject3D | |
![]() | flipLightDirection : Boolean = false | DisplayObject3D | |
| forceCoordSet : int = 0 change this to 0 if you're DAE is picking the wrong coordinates
| DAE | ||
| fps : uint [read-only]
Gets the default FPS.
| DAE | ||
![]() | frustumTestMethod : int = 0 | DisplayObject3D | |
![]() | geometry : GeometryObject3D
The GeometryObject3D object that contains the 3D definition of this instance.
| DisplayObject3D | |
![]() | id : int
[read-only] Unique id of this instance.
| DisplayObject3D | |
![]() | localRotationX : Number | DisplayObject3D | |
![]() | localRotationY : Number | DisplayObject3D | |
![]() | localRotationZ : Number | DisplayObject3D | |
![]() | material : MaterialObject3D | DisplayObject3D | |
![]() | materials : MaterialsList
The list of materials for this instance.
| DisplayObject3D | |
![]() | meshSort : uint = 1
tells Mesh3D's render() method to compare the measurement choice of the user for a triangle's sorting
| DisplayObject3D | |
![]() | name : String
An optional object name.
| DisplayObject3D | |
![]() | numChildren : int
Returns the number of children of this object.
| DisplayObjectContainer3D | |
![]() | parent : DisplayObjectContainer3D
[read-only] Indicates the DisplayObjectContainer3D object that contains this display object.
| DisplayObject3D | |
![]() | parentContainer : DisplayObject3D | DisplayObject3D | |
| parser : DaeReader
The COLLADA parser.
| DAE | ||
![]() | position : Number3D
A Number3D containing the current x, y, and z of the DisplayObject3D
| DisplayObject3D | |
![]() | root : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
| DisplayObjectContainer3D | |
![]() | rotationX : Number
Specifies the rotation around the X axis from its original orientation.
| DisplayObject3D | |
![]() | rotationY : Number
Specifies the rotation around the Y axis from its original orientation.
| DisplayObject3D | |
![]() | rotationZ : Number
Specifies the rotation around the Z axis from its original orientation.
| DisplayObject3D | |
![]() | scale : Number
Sets the 3D scale as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleX : Number
Sets the scale along the local X axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleY : Number
Sets the scale along the local Y axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleZ : Number
Sets the scale along the local Z axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scene : SceneObject3D | DisplayObject3D | |
![]() | sceneX : Number
The X coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | |
![]() | sceneY : Number
The Y coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | |
![]() | sceneZ : Number
The Z coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | |
![]() | screen : Number3D
[read-only] The coordinate of the object on screen.
| DisplayObject3D | |
![]() | screenZ : Number
[internal-use] The average depth of the object faces center.
| DisplayObject3D | |
![]() | sortedArray : Array [static]
| DisplayObject3D | |
![]() | testQuad : Boolean = true | DisplayObject3D | |
| texturePath : String Path where the textures should be loaded from.
| DAE | ||
![]() | transform : Matrix3D
A Matrix3D object containing values that affect the scaling, rotation, and translation of the display object.
| DisplayObject3D | |
![]() | useClipping : Boolean = true | DisplayObject3D | |
| useMaterialTargetName : Boolean = false Defines wether to set materials by target id or name - Might fix C4D
| DAE | ||
![]() | useOwnContainer : Boolean | DisplayObject3D | |
![]() | userData : UserData | DisplayObject3D | |
![]() | view : Matrix3D
[internal-use] A camera transformed Matrix3D object.
| DisplayObject3D | |
![]() | visible : Boolean
Whether or not the display object is visible.
| DisplayObject3D | |
![]() | world : Matrix3D
World transformation.
| DisplayObject3D | |
![]() | x : Number
An Number that sets the X coordinate of a object relative to the origin of its parent.
| DisplayObject3D | |
![]() | y : Number
An Number that sets the Y coordinate of a object relative to the origin of its parent.
| DisplayObject3D | |
| yUp : Boolean [read-only] Whether the COLLADA uses Y-up, Z-up otherwise.
| DAE | ||
![]() | z : Number
An Number that sets the Z coordinate of a object relative to the origin of its parent.
| DisplayObject3D | |
![]() | ZERO : DisplayObject3D
[static]
Returns an empty DiplayObject3D object positioned in the center of the 3D coordinate system (0, 0 ,0).
| DisplayObject3D | |
| Property | Defined by | ||
|---|---|---|---|
| _autoPlay : Boolean | DAE | ||
| _bindVertexInputs : Dictionary | DAE | ||
| _channels : Array | DAE | ||
| _channelsByTarget : Dictionary | DAE | ||
![]() | _children : Dictionary
[internal-use] Names indexed by children.
| DisplayObjectContainer3D | |
![]() | _childrenByName : Object
[internal-use] Children indexed by name.
| DisplayObjectContainer3D | |
| _colladaID : Dictionary | DAE | ||
| _colladaIDToObject : Object | DAE | ||
| _colladaSID : Dictionary | DAE | ||
| _colladaSIDToObject : Object | DAE | ||
| _controllers : Array | DAE | ||
| _currentFrame : int = 0 | DAE | ||
| _currentTime : int | DAE | ||
| _endTime : Number | DAE | ||
| _geometries : Object | DAE | ||
| _isAnimated : Boolean = false | DAE | ||
| _isPlaying : Boolean = false | DAE | ||
| _loop : Boolean = false | DAE | ||
| _numSkins : uint | DAE | ||
| _objectToNode : Object | DAE | ||
| _playerType : String | DAE | ||
| _queuedMaterials : Array | DAE | ||
| _rightHanded : Boolean | DAE | ||
| _rootNode : DisplayObject3D
| DAE | ||
![]() | _scene : SceneObject3D = null
The scene where the object belongs.
| DisplayObject3D | |
| _skins : Dictionary | DAE | ||
![]() | _sorted : Array | DisplayObject3D | |
| _startTime : Number | DAE | ||
| _textureSets : Object | DAE | ||
| _totalFrames : int = 0 | DAE | ||
![]() | _transformDirty : Boolean = false
[internal-use]
| DisplayObject3D | |
![]() | _useOwnContainer : Boolean = false | DisplayObject3D | |
![]() | _userData : UserData | DisplayObject3D | |
| Method | Defined by | ||
|---|---|---|---|
|
DAE(autoPlay:Boolean = true, name:String = null, loop:Boolean = false)
Constructor.
| DAE | ||
![]() |
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObject3D | |
![]() |
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | |
![]() | DisplayObject3D | ||
![]() |
addGeometry(geometry:GeometryObject3D = null):void
Adds a geometry definition to the instance.
| DisplayObject3D | |
![]() |
calculateScreenCoords(camera:CameraObject3D):void
| DisplayObject3D | |
![]() |
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | |
![]() |
Clones this object.
| DisplayObject3D | |
![]() |
copyPosition(reference:*):void
Copies the position information (x, y and z coordinates) from another object or Matrix3D.
| DisplayObject3D | |
![]() |
copyTransform(reference:*):void
Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
| DisplayObject3D | |
![]() | DisplayObject3D | ||
![]() |
distanceTo(obj:DisplayObject3D):Number
Gets the distance to the position of the given object.
| DisplayObject3D | |
|
getAnimationChannelByName(name:String):AbstractChannel3D
Gets a animation channel by its name.
| DAE | ||
|
getAnimationChannels(target:DisplayObject3D = null):Array
Gets all animation channels for a target.
| DAE | ||
|
getAnimationChannelsByClip(name:String):Array
Gets animation channels by clip name.
| DAE | ||
![]() |
getChildByName(name:String, recursive:Boolean = false):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | |
![]() |
getMaterialByName(name:String):MaterialObject3D
Returns the material that exists with the specified name in the materials list.
| DisplayObject3D | |
![]() |
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
| DisplayObject3D | |
![]() |
hitTestPoint(x:Number, y:Number, z:Number):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.
| DisplayObject3D | |
|
load(asset:*, materials:MaterialsList = null, asynchronousParsing:Boolean = false):void
Loads the COLLADA.
| DAE | ||
![]() |
Make the object look at a specific position.
| DisplayObject3D | |
![]() |
materialsList():String
Returns a string value with the list of material names of the materials list.
| DisplayObject3D | |
![]() |
moveBackward(distance:Number):void
Translate the display object in the opposite direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveDown(distance:Number):void
Translate the display object downwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveForward(distance:Number):void
Translate the display object in the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveLeft(distance:Number):void
Translate the display object lateraly, to the left of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveRight(distance:Number):void
Translate the display object lateraly, to the right of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveUp(distance:Number):void
Translate the display object upwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
pitch(angle:Number):void
Rotate the display object around its lateral or transverse axis —an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
| DisplayObject3D | |
|
play(clip:String = null):void
Plays the animation.
| DAE | ||
|
Project.
| DAE | ||
|
Removes a child.
| DAE | ||
![]() |
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
![]() |
replaceMaterialByName(material:MaterialObject3D, name:String):void
Replaces a material by its name.
| DisplayObject3D | |
![]() |
roll(angle:Number):void
Rotate the display object around the longitudinal axis —an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
| DisplayObject3D | |
![]() |
setChildMaterial(child:DisplayObject3D, material:MaterialObject3D, existingMaterial:MaterialObject3D = null):void
Sets the material for a child DisplayObject3D.
| DisplayObject3D | |
![]() |
setChildMaterialByName(childName:String, material:MaterialObject3D):void
Sets the material for a child DisplayObject3D by the child's name.
| DisplayObject3D | |
|
stop():void
Stops the animation.
| DAE | ||
![]() |
toString():String
Returns a string value representing the three-dimensional position values of the display object instance.
| DisplayObject3D | |
![]() |
Move the object along a given direction.
| DisplayObject3D | |
![]() |
updateTransform():void
[internal-use] Updates the transform Matrix3D with the current rotation and scale values.
| DisplayObject3D | |
![]() |
yaw(angle:Number):void
Rotate the display object around about the vertical axis —an axis drawn from top to bottom.
| DisplayObject3D | |
| Method | Defined by | ||
|---|---|---|---|
|
Builds a animation channel for an object.
| DAE | ||
|
buildAnimationChannels():void
Build all animation channels.
| DAE | ||
|
buildColor(rgb:Array):uint
Build a color from RGB values.
| DAE | ||
|
Creates the faces for a COLLADA primitive.
| DAE | ||
|
buildFileInfo(asset:*):void
| DAE | ||
|
buildGeometries():void
Builds all COLLADA geometries.
| DAE | ||
|
buildImagePath(meshFolderPath:String, imgPath:String):String
| DAE | ||
|
buildMaterials():void
Builds the materials.
| DAE | ||
|
Builds a Matrix3D from a node's transform array.
| DAE | ||
|
| DAE | ||
|
buildMatrixStack(node:DaeNode):Array
| DAE | ||
|
Builds a DisplayObject3D from a node.
| DAE | ||
|
buildScene():void
Builds the scene.
| DAE | ||
|
Builds a skin.
| DAE | ||
|
buildVertices(mesh:DaeMesh):Array
Builds vertices from a COLLADA mesh.
| DAE | ||
|
Recursively finds a child by its COLLADA is.
| DAE | ||
|
Recursively finds a child by its SID.
| DAE | ||
|
getSymbolName(effectID:String):String
| DAE | ||
|
isBakedMatrix(node:DaeNode):Boolean
Tests whether a node has a baked transform
| DAE | ||
|
Setup the skin controllers.
| DAE | ||
|
linkSkins():void
Setup the skin controllers.
| DAE | ||
|
loadNextMaterial(event:FileLoadEvent = null):void
Loads the next material.
| DAE | ||
|
mergeGeometries(target:GeometryObject3D, source:GeometryObject3D, materialInstances:Array = null):void
Merge geometries.
| DAE | ||
|
onMaterialError(event:Event):void
Called when a BitmapMaterial failed to load.
| DAE | ||
|
onMaterialsLoaded():void
| DAE | ||
|
onParseAnimationsComplete(event:Event):void
Called when the parser completed parsing animations.
| DAE | ||
|
onParseAnimationsProgress(event:ProgressEvent):void
Called on parse animations progress.
| DAE | ||
|
onParseComplete(event:Event):void
Called when the DaeReader completed parsing.
| DAE | ||
|
onParseGeometriesComplete(e:Event):void
| DAE | ||
|
onParseProgress(event:ProgressEvent):void
Called on parsing progress.
| DAE | ||
![]() |
setParentContainer(parent:DisplayObject3D, assign:Boolean = true):void
| DisplayObject3D | |
| Constant | Defined by | ||
|---|---|---|---|
![]() | MESH_SORT_CENTER : uint = 1 [static]
tells Mesh3D's render() method to sort by measuring from the center of a triangle
| DisplayObject3D | |
![]() | MESH_SORT_CLOSE : uint = 3 [static]
tells Mesh3D's render() method to sort by measuring from the closest point of a triangle
| DisplayObject3D | |
![]() | MESH_SORT_FAR : uint = 2 [static]
tells Mesh3D's render() method to sort by measuring from the farthest point of a triangle
| DisplayObject3D | |
| ROOTNODE_NAME : String = "COLLADA_Scene" [static]
| DAE | ||
| _autoPlay | property |
protected var _autoPlay:Boolean
| baseUrl | property |
public var baseUrl:StringBase url.
| _bindVertexInputs | property |
protected var _bindVertexInputs:Dictionary
| _channels | property |
protected var _channels:Array
| _channelsByTarget | property |
protected var _channelsByTarget:Dictionary
| COLLADA | property |
public var COLLADA:XMLThe loaded XML.
| _colladaID | property |
protected var _colladaID:Dictionary
| _colladaIDToObject | property |
protected var _colladaIDToObject:Object
| _colladaSID | property |
protected var _colladaSID:Dictionary
| _colladaSIDToObject | property |
protected var _colladaSIDToObject:Object
| _controllers | property |
protected var _controllers:Array
| _currentFrame | property |
protected var _currentFrame:int = 0
| _currentTime | property |
protected var _currentTime:int
| DEFAULT_LINE_COLOR | property |
public static var DEFAULT_LINE_COLOR:uint = 0xffff00Default line color for splines.
| DEFAULT_LINE_WIDTH | property |
public static var DEFAULT_LINE_WIDTH:Number = 0Default line width for splines
| DEFAULT_TGA_ALTERNATIVE | property |
public static var DEFAULT_TGA_ALTERNATIVE:String = "png"Alternative file-extension for TGA images. Default is "png".
| document | property |
| _endTime | property |
protected var _endTime:Number
| filename | property |
public var filename:StringThe filename - if applicable.
| fileTitle | property |
public var fileTitle:StringThe filetitle - if applicable.
| forceCoordSet | property |
public var forceCoordSet:int = 0change this to 0 if you're DAE is picking the wrong coordinates
| fps | property |
fps:uint [read-only]Gets the default FPS.
Implementation public function get fps():uint
| _geometries | property |
protected var _geometries:Object
| _isAnimated | property |
protected var _isAnimated:Boolean = false
| _isPlaying | property |
protected var _isPlaying:Boolean = false
| _loop | property |
protected var _loop:Boolean = false
| _numSkins | property |
protected var _numSkins:uint
| _objectToNode | property |
protected var _objectToNode:Object
| parser | property |
public var parser:DaeReaderThe COLLADA parser.
| _playerType | property |
protected var _playerType:String
| _queuedMaterials | property |
protected var _queuedMaterials:Array
| _rightHanded | property |
protected var _rightHanded:Boolean
| _rootNode | property |
protected var _rootNode:DisplayObject3D
| _skins | property |
protected var _skins:Dictionary
| _startTime | property |
protected var _startTime:Number
| texturePath | property |
public var texturePath:StringPath where the textures should be loaded from.
| _textureSets | property |
protected var _textureSets:Object
| _totalFrames | property |
protected var _totalFrames:int = 0
| useMaterialTargetName | property |
public var useMaterialTargetName:Boolean = falseDefines wether to set materials by target id or name - Might fix C4D
| yUp | property |
yUp:Boolean [read-only]Whether the COLLADA uses Y-up, Z-up otherwise.
Implementation public function get yUp():Boolean
| DAE | () | constructor |
public function DAE(autoPlay:Boolean = true, name:String = null, loop:Boolean = false)Constructor.
ParametersautoPlay:Boolean (default = true) — Whether to start the animation automatically.
|
|
name:String (default = null) — Optional name for the DAE.
|
|
loop:Boolean (default = false) |
| buildAnimationChannel | () | method |
protected function buildAnimationChannel(target:DisplayObject3D, channel:DaeChannel):MatrixChannel3DBuilds a animation channel for an object.
Parameterstarget:DisplayObject3D — the target object's channel
|
|
channel:DaeChannel — The target object
|
MatrixChannel3D |
| buildAnimationChannels | () | method |
protected function buildAnimationChannels():voidBuild all animation channels.
| buildColor | () | method |
protected function buildColor(rgb:Array):uintBuild a color from RGB values.
Parametersrgb:Array |
uint |
| buildFaces | () | method |
protected function buildFaces(primitive:DaePrimitive, geometry:GeometryObject3D, voffset:uint):voidCreates the faces for a COLLADA primitive.
Parametersprimitive:DaePrimitive — primitive
|
|
geometry:GeometryObject3D |
|
voffset:uint |
See also
| buildFileInfo | () | method |
protected function buildFileInfo(asset:*):voidParameters
asset:* |
| buildGeometries | () | method |
protected function buildGeometries():voidBuilds all COLLADA geometries.
| buildImagePath | () | method |
protected function buildImagePath(meshFolderPath:String, imgPath:String):StringParameters
meshFolderPath:String |
|
imgPath:String |
String |
| buildMaterials | () | method |
protected function buildMaterials():voidBuilds the materials.
| buildMatrix | () | method |
protected function buildMatrix(node:DaeNode):Matrix3DBuilds a Matrix3D from a node's transform array.
Parametersnode:DaeNode |
Matrix3D |
See also
| buildMatrixFromTransform | () | method |
protected function buildMatrixFromTransform(transform:DaeTransform):Matrix3DParameters
transform:DaeTransform |
Matrix3D |
| buildMatrixStack | () | method |
| buildNode | () | method |
protected function buildNode(node:DaeNode, parent:DisplayObject3D):voidBuilds a DisplayObject3D from a node.
Parametersnode:DaeNode |
|
parent:DisplayObject3D |
See also
| buildScene | () | method |
protected function buildScene():voidBuilds the scene.
| buildSkin | () | method |
protected function buildSkin(instance:Skin3D, colladaSkin:DaeSkin, skeletons:Array, node:DaeNode):voidBuilds a skin.
Parametersinstance:Skin3D |
|
colladaSkin:DaeSkin |
|
skeletons:Array |
|
node:DaeNode |
| buildVertices | () | method |
protected function buildVertices(mesh:DaeMesh):ArrayBuilds vertices from a COLLADA mesh.
Parametersmesh:DaeMesh — The COLLADA mesh. |
Array — Array of Vertex3D
|
See also
| findChildByID | () | method |
protected function findChildByID(id:String, parent:DisplayObject3D = null):DisplayObject3DRecursively finds a child by its COLLADA is.
Parametersid:String |
|
parent:DisplayObject3D (default = null) |
DisplayObject3D —
The found child.
|
| findChildBySID | () | method |
protected function findChildBySID(sid:String, parent:DisplayObject3D = null):DisplayObject3DRecursively finds a child by its SID.
Parameterssid:String |
|
parent:DisplayObject3D (default = null) |
DisplayObject3D —
The found child.
|
| getAnimationChannelByName | () | method |
public function getAnimationChannelByName(name:String):AbstractChannel3DGets a animation channel by its name.
Parametersname:String |
AbstractChannel3D —
the found channel.
|
| getAnimationChannels | () | method |
public function getAnimationChannels(target:DisplayObject3D = null):ArrayGets all animation channels for a target.
NOTE: when target is null, all channels for this object are returned.
Parameterstarget:DisplayObject3D (default = null) — The target to get the channels for.
|
Array — Array of AnimationChannel3D.
|
| getAnimationChannelsByClip | () | method |
public function getAnimationChannelsByClip(name:String):ArrayGets animation channels by clip name.
Parametersname:String — The clip name
|
Array — Array of AnimationChannel3D.
|
| getSymbolName | () | method |
protected function getSymbolName(effectID:String):StringParameters
effectID:String |
String |
| isBakedMatrix | () | method |
protected function isBakedMatrix(node:DaeNode):BooleanTests whether a node has a baked transform
Parametersnode:DaeNode |
Boolean |
| linkSkin | () | method |
protected function linkSkin(instance:DisplayObject3D, skin:DaeSkin):voidSetup the skin controllers.
Parametersinstance:DisplayObject3D |
|
skin:DaeSkin |
| linkSkins | () | method |
protected function linkSkins():voidSetup the skin controllers.
| load | () | method |
public function load(asset:*, materials:MaterialsList = null, asynchronousParsing:Boolean = false):voidLoads the COLLADA.
Parametersasset:* — The url, an XML object or a ByteArray specifying the COLLADA file.
|
|
materials:MaterialsList (default = null) — An optional materialsList.
|
|
asynchronousParsing:Boolean (default = false) |
| loadNextMaterial | () | method |
protected function loadNextMaterial(event:FileLoadEvent = null):voidLoads the next material.
Parametersevent:FileLoadEvent (default = null) |
| mergeGeometries | () | method |
protected function mergeGeometries(target:GeometryObject3D, source:GeometryObject3D, materialInstances:Array = null):voidMerge geometries.
Parameterstarget:GeometryObject3D — The target geometry to merge to.
|
|
source:GeometryObject3D — The source geometry
|
|
materialInstances:Array (default = null) — Optional material for triangles, only used when a triangle has no material.
|
| onMaterialError | () | method |
protected function onMaterialError(event:Event):voidCalled when a BitmapMaterial failed to load.
Parametersevent:Event |
| onMaterialsLoaded | () | method |
protected function onMaterialsLoaded():void
| onParseAnimationsComplete | () | method |
protected function onParseAnimationsComplete(event:Event):voidCalled when the parser completed parsing animations.
Parametersevent:Event |
| onParseAnimationsProgress | () | method |
protected function onParseAnimationsProgress(event:ProgressEvent):voidCalled on parse animations progress.
Parametersevent:ProgressEvent |
| onParseComplete | () | method |
protected function onParseComplete(event:Event):voidCalled when the DaeReader completed parsing.
Parametersevent:Event |
| onParseGeometriesComplete | () | method |
protected function onParseGeometriesComplete(e:Event):voidParameters
e:Event |
| onParseProgress | () | method |
protected function onParseProgress(event:ProgressEvent):voidCalled on parsing progress.
Parametersevent:ProgressEvent |
| play | () | method |
public function play(clip:String = null):voidPlays the animation.
Parametersclip:String (default = null) — clip Optional clip name.
|
| project | () | method |
public override function project(parent:DisplayObject3D, renderSessionData:RenderSessionData):NumberProject.
Parametersparent:DisplayObject3D |
|
renderSessionData:RenderSessionData |
Number — Number
|
| removeChild | () | method |
public override function removeChild(child:DisplayObject3D):DisplayObject3DRemoves a child.
Parameterschild:DisplayObject3D — The child to remove
|
DisplayObject3D —
The removed child
|
| stop | () | method |
public function stop():voidStops the animation.
| ROOTNODE_NAME | constant |
public static const ROOTNODE_NAME:String = "COLLADA_Scene"