Constructor

new(fileName:String)

Variables

@:value(false)generateNormals:Bool = false

@:value(false)generateTangents:Bool = false

@:value(true)optimizeSkin:Bool = true

Methods

toHMD(filePath:String, includeGeometry:Bool):Data

Inherited Variables

Defined by BaseLibrary

@:value(true)allowVertexColor:Bool = true

fileName:String

@:value(false)fourBonesByVertex:Bool = false

Use 4 bones of influence per vertex instead of 3

@:value(false)highPrecision:Bool = false

Keep high precision values. Might increase animation data size and compressed size.

keepJoints:Map<String, Bool>

Allows to prevent some terminal unskinned joints to be removed, for instance if we want to track their position

@:value(34)maxBonesPerSkin:Int = 34

If there are too many bones, the model will be split in separate render passes.

@:value(true)normalizeScaleOrient:Bool = true

Convert centimeters to meters and axis to Z-up (Maya FBX export)

skipObjects:Map<String, Bool>

Allows to skip some objects from being processed as if they were not part of the FBX

unskinnedJointsAsObjects:Bool

Consider unskinned joints to be simple objects

@:value(0.)version:Float = 0.

The FBX version that was decoded

Inherited Methods

Defined by BaseLibrary

getAnimationNames():Array<String>

Returns an array of names with all animations present in FBX file.

getChild(node:FbxNode, nodeName:String, ?opt:Bool):Null<FbxNode>

getChilds(node:FbxNode, ?nodeName:String):Array<Null<FbxNode>>

@:value({ name : "" })getGeometry(name:String = ""):Geometry

getParent(node:FbxNode, nodeName:String, ?opt:Bool):Null<FbxNode>

getParents(node:FbxNode, ?nodeName:String):Array<Null<FbxNode>>

getSpecChild(node:FbxNode, name:String):Null<FbxNode>

load(root:FbxNode):Void

loadAnimation(?animName:String, ?root:Null<FbxNode>, ?lib:BaseLibrary):Animation

loadFile(data:Bytes):Void

mergeModels(modelNames:Array<String>):Void