File: AMFLoader.md | Updated: 11/15/2025
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 );
AMFLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { AMFLoader } from 'three/addons/loaders/AMFLoader.js';
Constructs a new AMF loader.
manager | The loading manager.
---|---
Starts loading from the given URL and passes the loaded AMF 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 AMF data and returns the resulting group.
data | The raw AMF asset data as an array buffer.
---|---
Overrides: Loader#parse
Returns: A group representing the parsed asset.