Skip to main content

@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.

FormatSubpathDescription
Package rootDraco compressed meshes and point clouds
/gltfglTF and GLB
—/objOBJ and MTL
/usdUSD 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.

FormatImport subpath
@loaders.gl/scene/draco
@loaders.gl/scene/draco-worker-node.js
@loaders.gl/scene/draco-worker.js
@loaders.gl/scene/draco-writer-worker-node.cjs
@loaders.gl/scene/draco-writer-worker-node.js
@loaders.gl/scene/draco-writer-worker.js
@loaders.gl/scene/draco/bundled
@loaders.gl/scene/glb
@loaders.gl/scene/glb/bundled
@loaders.gl/scene/gltf
@loaders.gl/scene/gltf/bundled
@loaders.gl/scene/gltf/gltf-1.schema.json
@loaders.gl/scene/gltf/gltf-2.1.schema.json
@loaders.gl/scene/gltf/gltf-2.schema.json
@loaders.gl/scene/gltf/gltf-all.schema.json
@loaders.gl/scene/gltf/gltf.schema.json
@loaders.gl/scene/gltf/mesh-arrow
@loaders.gl/scene/gltf/schema
@loaders.gl/scene/gltf/schemas/*
@loaders.gl/scene/materialx
@loaders.gl/scene/materialx/bundled
@loaders.gl/scene/mtl
@loaders.gl/scene/mtl/bundled
@loaders.gl/scene/obj
@loaders.gl/scene/obj-worker.js
@loaders.gl/scene/obj/bundled
@loaders.gl/scene/stl
@loaders.gl/scene/stl/bundled
@loaders.gl/scene/usd
@loaders.gl/scene/usd/bundled