Capítulo 184 de 859
A loader for the LWO format.
LWO3 and LWO2 formats are supported.
References:
const loader = new LWOLoader();
const lwoData = await loader.loadAsync( 'models/lwo/Objects/LWO3/Demo.lwo' );
const mesh = object.meshes[ 0 ];
scene.add( mesh );
Constructor
| Signature |
|---|
new LWOLoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.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 ) : Object | Parses the given LWO data and returns the resulting meshes and materials. |