threejs-loaders
Installation
SKILL.md
Three.js Loaders
Work Pattern
- Prefer GLB/GLTF for production models; use legacy OBJ/FBX/STL/PLY only when the source format requires it.
- Configure decoder/transcoder paths before loading compressed assets, and keep those paths compatible with the app's public asset directory.
- Handle progress, error states, traversal, material/texture setup, animation extraction, and disposal of replaced assets.
- Pair with
threejs-animationfor clips,threejs-texturesfor color space and HDR setup, andthreejs-materialsfor imported material adjustments.
Quick Start
import * as THREE from "three";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";