Packages

@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

  1. Call loadGltfAsset({ worldId, data, ... })
  2. Create one or more instances via asset.instantiate(...)
  3. Dispose runtime entities with instance.disposeEntities()
  4. Dispose shared uploaded resources with asset.disposeAll()

Notes

  • Package is actively used in vulfram-engine demo 006.
  • Resources are allocated in the target World3D and must be disposed when no longer needed.
Documentation Vulfram Core