GLTFLoader
GLTFLoader ⟵ Loader
class for loading geometry, skins and animations from glTF 2.0
files.
this class extends the base loader to handle gltf (.gltf) loading. it
reads external buffers and produces a Group
with Mesh/SkinnedMesh children. key features:
- loads geometry data from gltf files
- creates Mesh or SkinnedMesh objects with BufferGeometry
- integrates with LoadingManager for progress
- supports callback-based loading patterns
Methods
GLTFLoader()
default constructor - creates a gltf loader with default settings
GLTFLoader(LoaderManager* manager)
constructor with loading manager
| manager | loading manager to use for this loader |
GLTFLoader* clone() const
creates a copy of this gltf loader
void copy(const GLTFLoader& other)
copies properties from another gltf loader
| other | source gltf loader |
Group* load(const string& url)
loads a .gltf file and returns a group of meshes
| url | path to the gltf file | "" |
virtual void* parse(const void* data) override
parses loaded gltf json into a Group with Mesh children
| data | raw data to parse |
Properties
| isGLTFLoader | bool | read-only tag |