@vulfram/gltf-loader
Loads .gltf and .glb content into @vulfram/engine 3D worlds.
Installation
bash
npm i @vulfram/engine @vulfram/gltf-loader
Primary API
loadGltfAsset(input)loadGltfScene(input)(legacy one-shot)
Typical flow
- Call
loadGltfAsset({ worldId, data, ... }) - Create one or more instances via
asset.instantiate(...) - Dispose runtime entities with
instance.disposeEntities() - Dispose shared uploaded resources with
asset.disposeAll()
Notes
- Package is actively used in
vulfram-enginedemo006. - Resources are allocated in the target
World3Dand must be disposed when no longer needed.
Documentation Vulfram Core