threejs-loaders

Load GLTF models, textures, and HDR environments in Three.js applications.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/divinaarmuela/Content --skill threejs-loaders-divinaarmuela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-loaders
Source: https://github.com/divinaarmuela/Content/tree/main/.claude/skills/threejs-loaders
Command: npx skills add https://github.com/divinaarmuela/Content --skill threejs-loaders-divinaarmuela

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three.

What problem does it solve? Loading 3D assets in Three.js involves many loader classes, async patterns, compression formats, and configuration details that are easy to get wrong, leading to broken textures, failed model loads, or untracked loading progress. ## Core Features & Use Cases - Model Loading: Load GLTF/GLB, OBJ, FBX, STL, and PLY models with support for Draco geometry compression and KTX2 compressed textures. - Texture & Environment Loading: Load standard textures, cube maps, HDR/EXR environments, and generate PMREM prefiltered maps for PBR rendering. - Progress & Error Handling: Coordinate multiple loaders with LoadingManager, implement promise-based async loading, retries, timeouts, fallbacks, and caching. - Use Case: When building a product configurator that displays a GLB model with an HDR environment and a loading progress bar, use this Skill to wire up GLTFLoader, RGBELoader, and LoadingManager correctly. ## Quick Start Ask the AI to load a GLB model with an HDR environment map and a progress indicator in your Three.js scene.

Frequently Asked Questions about threejs-loaders

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load a GLTF or GLB model in Three.js?

Use GLTFLoader from three/addons/loaders/GLTFLoader.js and call loader.load with the model URL and a callback. The callback receives a gltf object whose scene property you add to your scene, and whose animations array can be played with AnimationMixer.

How to track loading progress for multiple Three.js assets?

Create a THREE.LoadingManager and pass it to each loader's constructor. Set manager.onProgress to receive per-file updates with loaded and total counts, and manager.onLoad to detect when all assets finish loading.

Does GLTFLoader support Draco compressed models?

Yes, GLTFLoader supports Draco compression through DRACOLoader. Create a DRACOLoader, set the decoder path to the Draco decoder files, call preload, then attach it with gltfLoader.setDRACOLoader before loading the compressed model.

How do I load an HDR environment map in Three.js?

Use RGBELoader to load the .hdr file, set texture.mapping to THREE.EquirectangularReflectionMapping, then assign it to scene.environment and optionally scene.background. For PBR quality, pass it through PMREMGenerator first.

Why does my loaded texture look washed out in Three.js?

The texture color space is likely wrong. Set texture.colorSpace to THREE.SRGBColorSpace for color and albedo maps, and use linear color space for data maps like normal or roughness textures, then set needsUpdate to true.

How do I handle Three.js asset loading errors and retries?

Wrap loader.load in a Promise that rejects on the error callback, then implement retry logic with exponential backoff or a fallback URL. You can also use fetch with AbortController to enforce loading timeouts.