Capítulo 203 de 859
A loader for the 3DS format, based on lib3ds.
Loads geometry with uv and materials basic properties with texture support.
const loader = new TDSLoader();
loader.setResourcePath( 'models/3ds/portalgun/textures/' );
const object = await loader.loadAsync( 'models/3ds/portalgun/portalgun.3ds' );
scene.add( object );
Constructor
| Signature |
|---|
new TDSLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
.debug : boolean | Whether debug mode should be enabled or not. |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded 3DS asset to the onLoad() callback. |
.parse( arraybuffer : ArrayBuffer, path : string ) : Group | Parses the given 3DS data and returns the resulting data. |