Packagealternativa.engine3d.loaders
Classpublic class Loader3DS
InheritanceLoader3DS Inheritance Loader3D Inheritance flash.events.EventDispatcher

3DS models loader.

The class implements functionality needed for loading a 3DS model from specified URL. If the model uses textures, then they have to be placed in the same folder as the model.

The next entities are loaded from a 3DS file:

In the loaded objects all faces with the same material are put in the same surface whose indetifier matches the name of the material. If an object has no materials, then all faces are put in a single surface which gets a wire material.

See also

alternativa.engine3d.loaders.Parser3DS


Public Properties
 PropertyDefined by
  blendMode : String
The value of the blendMode property of texture materials which are created during loading process.
Loader3DS
 Inheritedcontent : Object3D
The container with all loaded objects.
Loader3D
  loadMaterials : Boolean = true
If false, then materials will not be loaded.
Loader3DS
  mobility : int
The value of the mobility property of 3d objects.
Loader3DS
  precision : Number
The value of the precision property of texture materials which are created during loading process.
Loader3DS
  repeat : Boolean
The value of the repeat property of texture materials which are created during loading process.
Loader3DS
  scale : Number
The scaling coefficient wich is applied to all loaded objects.
Loader3DS
  smooth : Boolean
The value of the smooth property of texture materials which are created during loading process.
Loader3DS
Protected Properties
 PropertyDefined by
 InheritedbaseURL : String
Loader3D
 Inherited_content : Object3D
Loader3D
 InheritedloaderContext : LoaderContext
Loader3D
 InheritedloaderState : int = 0
Loader3D
Public Methods
 MethodDefined by
  
Creates a new instance of the class.
Loader3DS
 Inherited
close():void
Stops current loading process.
Loader3D
 Inherited
load(url:String, loaderContext:LoaderContext = null):void
Loads a scene from specified URL.
Loader3D
 Inherited
loadBytes(data:ByteArray, baseUrl:String = null, loaderContext:LoaderContext = null):void
Loads data from a byte array.
Loader3D
 Inherited
unload():void
Clears internal references to the loaded data.
Loader3D
Protected Methods
 MethodDefined by
 Inherited
clean():void
Loader3D
  
Loader3DS
 Inherited
complete():void
Loader3D
 Inherited
onMainLoadingError(e:ErrorEvent):void
Loader3D
  
parse(data:ByteArray):void
Loader3DS
 Inherited
setState(state:int):void
Loader3D
  
Loader3DS
Events
 EventSummaryDefined by
 Inherited Dispatched when all scene data is loaded and parsed.Loader3D
 Inherited Dispatched when an error occurs during loading process.Loader3D
 Inherited Dispatched when a loading process stage is completed.Loader3D
 Inherited Dispatched when data is recieved during loading process.Loader3D
 Inherited Dispatched when a loading process stage is started.Loader3D
 Inherited Dispatched when a call of the load() method violates the security rules.Loader3D
Property detail
blendModeproperty
blendMode:String  [read-write]

The value of the blendMode property of texture materials which are created during loading process.

The default value is BlendMode.NORMAL.

Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void

See also

loadMaterialsproperty 
public var loadMaterials:Boolean = true

If false, then materials will not be loaded.

The default value is true.

mobilityproperty 
mobility:int  [read-write]

The value of the mobility property of 3d objects.

The default value is 0.

Implementation
    public function get mobility():int
    public function set mobility(value:int):void

See also

precisionproperty 
precision:Number  [read-write]

The value of the precision property of texture materials which are created during loading process.

The default value is TextureMaterialPrecision.MEDIUM.

Implementation
    public function get precision():Number
    public function set precision(value:Number):void

See also

repeatproperty 
repeat:Boolean  [read-write]

The value of the repeat property of texture materials which are created during loading process.

The default value is true.

Implementation
    public function get repeat():Boolean
    public function set repeat(value:Boolean):void

See also

scaleproperty 
scale:Number  [read-write]

The scaling coefficient wich is applied to all loaded objects.

The default value is 1.

Implementation
    public function get scale():Number
    public function set scale(value:Number):void
smoothproperty 
smooth:Boolean  [read-write]

The value of the smooth property of texture materials which are created during loading process.

The default value is false.

Implementation
    public function get smooth():Boolean
    public function set smooth(value:Boolean):void

See also

Constructor detail
Loader3DS()constructor
public function Loader3DS()

Creates a new instance of the class.

Method detail
closeInternal()method
protected override function closeInternal():void

parse()method 
protected override function parse(data:ByteArray):void

Parameters
data:ByteArray
unloadInternal()method 
protected override function unloadInternal():void