Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class GLTFLoader

Provides a few interfaces to load GLTF models from local files or from memory.

No constructor, exposed as a global object gltfLoader.

class GLTFLoader

Name Description
Methods  
loadModelFromFile() Load a GLTF model from a local GLTF file.
loadAnimationsFromFile() Load only animation data from a local GLTF file.
loadModelFromMemory() Load a GLTF model from a memory buffer.
loadAnimationsFromMemory() Load only animation data from a memory buffer.

Methods

loadModelFromFile()

.loadModelFromFile(name: String): GLTFModel

Load a GLTF model from a local GLTF file.

loadAnimationsFromFile()

.loadAnimationsFromFile(name: String): Object

Load only animation data from a local GLTF file.

The returned object has the same structure as the return value of GLTFModel.getAnimation.

loadModelFromMemory()

.loadModelFromMemory(buf: ArrayBuffer): GLTFModel

Load a GLTF model from a memory buffer.

loadAnimationsFromMemory()

.loadAnimationsFromMemory(buf: ArrayBuffer): Object

Load only animation data from a memory buffer.

The returned object has the same structure as the return value of GLTFModel.getAnimation.