File: LWOLoader.md | Updated: 11/15/2025
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 );
LWOLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { LWOLoader } from 'three/addons/loaders/LWOLoader.js';
Constructs a new LWO loader.
manager | The loading manager.
---|---
Starts loading from the given URL and passes the loaded LWO asset to the onLoad() callback.
url | The path/URL of the file to be loaded. This can also be a data URI.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Parses the given LWO data and returns the resulting meshes and materials.
iffBuffer | The raw LWO data as an array buffer.
---|---
path | The URL base path.
modelName | The model name.
Overrides: Loader#parse
Returns: An object holding the parse meshes and materials.