Capítulo 154 de 859
A loader for the AMF format.
The loader supports materials, color and ZIP compressed files. No constellation support (yet).
const loader = new AMFLoader();
const object = await loader.loadAsync( './models/amf/rook.amf' );
scene.add( object );
Constructor
| Signature |
|---|
new AMFLoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded AMF asset to the onLoad() callback. |
.parse( data : ArrayBuffer ) : Group | Parses the given AMF data and returns the resulting group. |