Packageaway3d.loaders
Classpublic class Max3DS

Public Properties
 PropertyDefined by
  container : ObjectContainer3D
Max3DS
  materialLibrary : MaterialLibrary
Max3DS
  meshDataList : Array
Max3DS
Protected Properties
 PropertyDefined by
  centerMeshes : Boolean
In the 3ds file only the file names of texture files are given.
Max3DS
  material : ITriangleMaterial
Max3DS
Public Methods
 MethodDefined by
  
Max3DS
(data:ByteArray, init:Object = null)
Max3DS
  
load(url:String, init:Object = null):Object3DLoader
[static]
Max3DS
  
loadTextures(data:*, init:Object = null):Object3DLoader
[static]
Max3DS
  
parse(data:*, init:Object = null, loader:Object3DLoader = null):Object3D
[static]
Max3DS
Public Constants
 ConstantDefined by
  AMBIENT : String = "ambient"
Max3DS
  AMBIENT_LIGHT : int = 0X2100
Max3DS
  ANIM_HEADER : int = 0xB00A
Max3DS
  ANIM_NAME : int = 0xB010
Max3DS
  ANIM_OBJ : int = 0xB002
Max3DS
  ANIM_POS : int = 0xB020
Max3DS
  ANIM_ROT : int = 0xB021
Max3DS
  ANIM_SCALE : int = 0xB022
Max3DS
  COLOR_F : int = 0x0010
Max3DS
  COLOR_RGB : int = 0x0011
Max3DS
  DIFFUSE : String = "diffuse"
Max3DS
  EDIT3DS : int = 0x3D3D
Max3DS
  FLOAT_PERC : int = 0x0031
Max3DS
  HEIRARCHY : int = 0x4F00
Max3DS
  IMAGE_FILE : int = 0x1100
Max3DS
  INT_PERCENTAGE : int = 0x0030
Max3DS
  KEYF3DS : int = 0xB000
Max3DS
  KFVERSION : int = 0x0005
Max3DS
  LIN_COLOR_24 : int = 0x0012
Max3DS
  LIN_COLOR_F : int = 0x0013
Max3DS
  MASTER_SCALE : int = 0x0100
Max3DS
  MAT_AMBIENT : int = 0xA010
Max3DS
  MAT_DIFFUSE : int = 0xA020
Max3DS
  MAT_EMISSIVE : int = 0xA080
Max3DS
  MATERIAL : int = 0xAFFF
Max3DS
  MAT_FALLOFF : int = 0xA052
Max3DS
  MAT_NAME : int = 0xA000
Max3DS
  MAT_SHADER : int = 0xA100
Max3DS
  MAT_SHININESS : int = 0xA040
Max3DS
  MAT_SPECULAR : int = 0xA030
Max3DS
  MAT_TEXFLNM : int = 0xA300
Max3DS
  MAT_TEXMAP : int = 0xA200
Max3DS
  MESH : int = 0x4000
Max3DS
  MESH_COLOR_IND : int = 0x4165
Max3DS
  MESH_FACES : int = 0x4120
Max3DS
  MESH_MATER : int = 0x4130
Max3DS
  MESH_OBJECT : int = 0x4100
Max3DS
  MESH_TEX_INFO : int = 0x4170
Max3DS
  MESH_TEX_VERT : int = 0x4140
Max3DS
  MESH_VERSION : int = 0x3D3E
Max3DS
  MESH_VERTICES : int = 0x4110
Max3DS
  MESH_XFMATRIX : int = 0x4160
Max3DS
  OBJ_CAMERA : int = 0x4700
Max3DS
  OBJ_LIGHT : int = 0x4600
Max3DS
  PRIMARY : int = 0x4D4D
Max3DS
  SPECULAR : String = "specular"
Max3DS
  VERSION : int = 0x0002
Max3DS
  VERTEX_FLAGS : int = 0x4111
Max3DS
Property detail
centerMeshesproperty
protected var centerMeshes:Boolean

In the 3ds file only the file names of texture files are given. If the textures are stored in a specific path, that path can be specified through the constructor.

containerproperty 
public var container:ObjectContainer3D
materialproperty 
protected var material:ITriangleMaterial
materialLibraryproperty 
public var materialLibrary:MaterialLibrary
meshDataListproperty 
public var meshDataList:Array
Constructor detail
Max3DS()constructor
public function Max3DS(data:ByteArray, init:Object = null)Parameters
data:ByteArray
 
init:Object (default = null)
Init Parameters
Method detail
load()method
public static function load(url:String, init:Object = null):Object3DLoader Parameters
url:String
 
init:Object (default = null)

Returns
Object3DLoader
loadTextures()method 
public static function loadTextures(data:*, init:Object = null):Object3DLoader Parameters
data:*
 
init:Object (default = null)

Returns
Object3DLoader
parse()method 
public static function parse(data:*, init:Object = null, loader:Object3DLoader = null):Object3D Parameters
data:*
 
init:Object (default = null)
 
loader:Object3DLoader (default = null)

Returns
Object3D
Constant detail
AMBIENTconstant
public const AMBIENT:String = "ambient"
AMBIENT_LIGHTconstant 
public const AMBIENT_LIGHT:int = 0X2100
ANIM_HEADERconstant 
public const ANIM_HEADER:int = 0xB00A
ANIM_NAMEconstant 
public const ANIM_NAME:int = 0xB010
ANIM_OBJconstant 
public const ANIM_OBJ:int = 0xB002
ANIM_POSconstant 
public const ANIM_POS:int = 0xB020
ANIM_ROTconstant 
public const ANIM_ROT:int = 0xB021
ANIM_SCALEconstant 
public const ANIM_SCALE:int = 0xB022
COLOR_Fconstant 
public const COLOR_F:int = 0x0010
COLOR_RGBconstant 
public const COLOR_RGB:int = 0x0011
DIFFUSEconstant 
public const DIFFUSE:String = "diffuse"
EDIT3DSconstant 
public const EDIT3DS:int = 0x3D3D
FLOAT_PERCconstant 
public const FLOAT_PERC:int = 0x0031
HEIRARCHYconstant 
public const HEIRARCHY:int = 0x4F00
IMAGE_FILEconstant 
public const IMAGE_FILE:int = 0x1100
INT_PERCENTAGEconstant 
public const INT_PERCENTAGE:int = 0x0030
KEYF3DSconstant 
public const KEYF3DS:int = 0xB000
KFVERSIONconstant 
public const KFVERSION:int = 0x0005
LIN_COLOR_24constant 
public const LIN_COLOR_24:int = 0x0012
LIN_COLOR_Fconstant 
public const LIN_COLOR_F:int = 0x0013
MASTER_SCALEconstant 
public const MASTER_SCALE:int = 0x0100
MAT_AMBIENTconstant 
public const MAT_AMBIENT:int = 0xA010
MAT_DIFFUSEconstant 
public const MAT_DIFFUSE:int = 0xA020
MAT_EMISSIVEconstant 
public const MAT_EMISSIVE:int = 0xA080
MATERIALconstant 
public const MATERIAL:int = 0xAFFF
MAT_FALLOFFconstant 
public const MAT_FALLOFF:int = 0xA052
MAT_NAMEconstant 
public const MAT_NAME:int = 0xA000
MAT_SHADERconstant 
public const MAT_SHADER:int = 0xA100
MAT_SHININESSconstant 
public const MAT_SHININESS:int = 0xA040
MAT_SPECULARconstant 
public const MAT_SPECULAR:int = 0xA030
MAT_TEXFLNMconstant 
public const MAT_TEXFLNM:int = 0xA300
MAT_TEXMAPconstant 
public const MAT_TEXMAP:int = 0xA200
MESHconstant 
public const MESH:int = 0x4000
MESH_COLOR_INDconstant 
public const MESH_COLOR_IND:int = 0x4165
MESH_FACESconstant 
public const MESH_FACES:int = 0x4120
MESH_MATERconstant 
public const MESH_MATER:int = 0x4130
MESH_OBJECTconstant 
public const MESH_OBJECT:int = 0x4100
MESH_TEX_INFOconstant 
public const MESH_TEX_INFO:int = 0x4170
MESH_TEX_VERTconstant 
public const MESH_TEX_VERT:int = 0x4140
MESH_VERSIONconstant 
public const MESH_VERSION:int = 0x3D3E
MESH_VERTICESconstant 
public const MESH_VERTICES:int = 0x4110
MESH_XFMATRIXconstant 
public const MESH_XFMATRIX:int = 0x4160
OBJ_CAMERAconstant 
public const OBJ_CAMERA:int = 0x4700
OBJ_LIGHTconstant 
public const OBJ_LIGHT:int = 0x4600
PRIMARYconstant 
public const PRIMARY:int = 0x4D4D
SPECULARconstant 
public const SPECULAR:String = "specular"
VERSIONconstant 
public const VERSION:int = 0x0002
VERTEX_FLAGSconstant 
public const VERTEX_FLAGS:int = 0x4111
Wiki link
Click to go to the wiki page for 'away3d.loaders.Max3DS'

Code examples

Comments