Capítulo 165 de 859

Chapter 165: FBXLoader

Core Idea

A loader for the FBX format.

Requires FBX file to be >= 7.0 and in ASCII or >= 6400 in Binary format. Versions lower than this may load but will probably have errors.

Needs Support:

  • Morph normals / blend shape normals

FBX format references:

Binary format specification:

Code Examples

const loader = new FBXLoader();
const object = await loader.loadAsync( 'models/fbx/stanford-bunny.fbx' );
scene.add( object );
  • What it demonstrates: Typical usage of FBXLoader.

Reference Tables

Constructor

Signature
new FBXLoader( manager : LoadingManager )

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded FBX asset to the onLoad() callback.
.parse( FBXBuffer : ArrayBuffer, path : string ) : GroupParses the given FBX data and returns the resulting group.

Key Takeaways

  1. FBXLoader extends: Loader
  2. Key methods: load, parse.

Connects To