Capítulo 184 de 859

Chapter 184: LWOLoader

Core Idea

A loader for the LWO format.

LWO3 and LWO2 formats are supported.

References:

Code Examples

const loader = new LWOLoader();
const lwoData = await loader.loadAsync( 'models/lwo/Objects/LWO3/Demo.lwo' );
const mesh = object.meshes[ 0 ];
scene.add( mesh );
  • What it demonstrates: Typical usage of LWOLoader.

Reference Tables

Constructor

Signature
new LWOLoader( manager : LoadingManager )

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded LWO asset to the onLoad() callback.
.parse( iffBuffer : ArrayBuffer, path : string, modelName : string ) : ObjectParses the given LWO data and returns the resulting meshes and materials.

Key Takeaways

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

Connects To