@loaders.gl/scene
Load scene graphs and meshes from glTF/GLB, OBJ/MTL, OpenUSD and Draco. Install one package and use the format entrypoint appropriate for the asset.
| Format | Subpath | Description |
|---|---|---|
| Package root | Draco compressed meshes and point clouds | |
/gltf | glTF and GLB | |
| — | /obj | OBJ and MTL |
/usd | USD text, initial binary crate subset, and stored USDZ |
npm install @loaders.gl/core @loaders.gl/scene
import {parse} from '@loaders.gl/core';
import {GLTFLoader} from '@loaders.gl/scene/gltf';
import {OBJLoader} from '@loaders.gl/scene/obj';
import {USDLoader} from '@loaders.gl/scene/usd';
These exports are metadata-only loaders. Async core APIs preload implementations; synchronous APIs need a parser-bearing loader such as GLTFLoaderWithParser from @loaders.gl/scene/gltf. Writers and advanced glTF APIs remain under their format subpaths. glTF's schemas are available from @loaders.gl/scene/gltf/schema and its explicit JSON schema exports.
OBJ's transport helpers come directly from core and do not require the tables package. Draco, images and textures remain independent shared dependencies. See Modules for the complete package map.
Sources and credits
See the package source and license inventory and the project-wide Attributions and Credits.
Format guides
Package exports
All exported subpaths (30)
These are the package's public exports, including format entry points, parsers, writers, sources, and worker assets.