2.1.1 • Published 2 years ago

@sayduck/three-gltf-loader v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sayduck's customized version of three.js glTF loader

Installation

npm i --save @sayduck/three-gltf-loader

Description

three.js's GLTFLoader wrapped as a module for easy importing, TypeScript type definitions included.

Usage

import * as THREE from "three";
import GLTFLoader from "three-gltf-loader";

const loader = new GLTFLoader();
loader.load(
  "path/to/your/file.gltf",
  gltf => {
    // called when the resource is loaded
    scene.add(gltf.scene);
  },
  xhr => {
    // called while loading is progressing
    console.log(`${(xhr.loaded / xhr.total) * 100}% loaded`);
  },
  error => {
    // called when loading has errors
    console.error("An error happened", error);
  }
);

For further documentation, see the official GLTFLoader docs.

2.1.1

2 years ago

2.1.1-pre-0

2 years ago

2.1.0

2 years ago

2.1.0-pre-0

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.8-pre-2

2 years ago

2.0.8-pre-1

2 years ago

2.0.8-pre-0

2 years ago

2.0.7

3 years ago

2.0.6-pre-9

3 years ago

2.0.6-pre-8

3 years ago

2.0.6-pre-7

3 years ago

2.0.6-pre-6

3 years ago

2.0.6-pre-5

3 years ago

2.0.6-pre-4

3 years ago

2.0.6-pre-3

3 years ago

2.0.6-pre-2

3 years ago

2.0.6-pre-1

3 years ago

2.0.6-pre-0

3 years ago

2.0.5

3 years ago

2.0.5-pre-1

3 years ago

2.0.5-pre-0

3 years ago

2.0.4

3 years ago

2.0.4-pre-2

3 years ago

2.0.4-pre-1

3 years ago

2.0.4-pre-0

3 years ago

2.0.3

3 years ago

2.0.3-pre-1

3 years ago

2.0.3-pre-0

3 years ago

2.0.2

3 years ago

2.0.2-pre-0

3 years ago

2.0.1

3 years ago

2.0.1-pre-2

3 years ago

2.0.1-pre-1

3 years ago

2.0.1-pre-0

3 years ago

2.0.0

3 years ago

2.0.0-pre-15

4 years ago

2.0.0-pre-14

4 years ago

2.0.0-pre-13

4 years ago

2.0.0-pre-12

4 years ago

2.0.0-pre-11

4 years ago

2.0.0-pre-10

4 years ago

2.0.0-pre-9

4 years ago

2.0.0-pre-8

4 years ago

2.0.0-pre-7

4 years ago

2.0.0-pre-6

4 years ago

2.0.0-pre-5

4 years ago

2.0.0-pre-4

4 years ago

2.0.0-pre-3

4 years ago

2.0.0-pre-2

4 years ago

2.0.0-pre-1

4 years ago

2.0.0-pre-0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.7-pre-0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2-1

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago