threejs-loaders

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

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill threejs-loaders-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-loaders
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/threejs-loaders
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill threejs-loaders-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three.

What problem does it solve? Loading 3D assets in Three.js involves many loader classes, compression formats, and async patterns that are easy to get wrong, leading to broken textures, stalled loading screens, or failed model imports. ## 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, and HDR/EXR environment maps with correct color space, wrapping, and PMREM prefiltering for PBR rendering. - Progress & Error Handling: Coordinate multiple loaders with LoadingManager, track progress bars, and implement retry, timeout, and fallback logic. - Use Case: When building a product configurator that displays a 3D model, use this Skill to load a Draco-compressed GLB with a progress bar, apply an HDR environment map, and enable shadows on all meshes. ## Quick Start Show me how to load a GLB model with a loading progress bar and an HDR environment map in Three.js.

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 loaded and total counts for a progress bar, and manager.onLoad to detect when all assets finish.

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 pass it to gltfLoader.setDRACOLoader before loading.

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

Use RGBELoader to load the .hdr file, set texture.mapping to THREE.EquirectangularReflectionMapping, and assign it to scene.environment. For PBR quality, prefilter it with PMREMGenerator's fromEquirectangular method.

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

The texture likely has the wrong color space. 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.

Can I await Three.js loaders with async/await?

Yes, wrap loader.load in a Promise that resolves in the onLoad callback and rejects in onError. You can then use async/await and Promise.all to load multiple models and textures concurrently.