Basic glTF loader class.

Allow to load a glTF from an URI and create the associated ArrayBuffer and ImageBitmap.

Example

const gltfLoader = new GLTFLoader()
const gltf = await gltfLoader.loadFromUrl('path/to/model.gltf')

// create a gltfScenesManager from the resulting 'gltf' object
// assuming 'renderer' is a valid camera or curtains renderer
const gltfScenesManager = new GLTFScenesManager({ renderer, gltf })
gltfScenesManager.addMeshes()

Constructors

Properties

The GPUCurtainsGLTF object result.

Methods

  • Build the absolute uri of the resource

    Parameters

    • uri: string

      uri of the resource

    • baseUrl: string

      base url from which to get all the other assets.

    Returns string

    • absolute uri of the resource