| Package | sandy.parser |
| Class | public class ColladaParser |
| Inheritance | ColladaParser AParser flash.events.EventDispatcher |
| Implements | IParser |
Creates a Group as rootnode which appends all geometries it finds. Recommended settings for the COLLADA exporter:
var parser:IParser = Parser.create( "/path/to/my/colladafile.dae", Parser.COLLADA );
[Embed( source="/path/to/my/colladafile.dae", mimeType="application/octet-stream" )]
private var MyCollada:Class;
...
var parser:IParser = Parser.create( new MyCollada(), Parser.COLLADA );
| Property | Defined by | ||
|---|---|---|---|
| RELATIVE_TEXTURE_PATH : String
Default path for COLLADA images.
| ColladaParser | ||
![]() | standardAppearance : Appearance
Set the standard appearance for all the parsed objects.
| AParser | |
| Method | Defined by | ||
|---|---|---|---|
|
ColladaParser(p_sUrl:*, p_nScale:Number)
Creates a new COLLADA parser instance.
| ColladaParser | ||
![]() |
parse():void
Load the file that needs to be parsed.
| AParser | |
| RELATIVE_TEXTURE_PATH | property |
public var RELATIVE_TEXTURE_PATH:StringDefault path for COLLADA images.
Can this be done without??
| ColladaParser | () | constructor |
public function ColladaParser(p_sUrl:*, p_nScale:Number)Creates a new COLLADA parser instance.
Parametersp_sUrl:* — Can be either a string pointing to the location of the
COLLADA file or an instance of an embedded COLLADA file.
|
|
p_nScale:Number — The scale factor.
|