threejs-loaders
Skill13 starsChanged 7 months agoMITView on GitHub
Loads 3D assets in Three.js — GLTFLoader, DRACOLoader, KTX2Loader, TextureLoader, FontLoader, AudioLoader, LoadingManager, and async/await loading patterns. Use when the user asks about loading 3D models, GLTF, GLB, OBJ, textures, fonts, audio, or asset management. Trigger keywords: GLTFLoader, load model, GLTF, GLB, DRACOLoader, TextureLoader, LoadingManager, async load, asset.
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 193
Always dispose() loaders and textures after use to free GPU memory
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Three.js Loaders
GLTFLoader (primary 3D format)
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { DRACOLoader } from "three/addons/loaders/DRACOLoader.js";
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath("/draco/"); // copy from node_modules/three/examples/jsm/libs/draco/
const loader = new GLTFLoader();
loader.setDRACOLoader(dracoLoader);
// Async/await (recommended)
async function loadModel() {
const gltf = await loader.loadAsync("/models/scene.glb");
const model = gltf.scene;
model.traverse((child) => {
if (child.isMesh) {
child.castShadow = true;
child.receiveShadow = true;
}
});
scene.add(model);
return gltf;
}
// With animations
const { scene: model, animations } = await loader.loadAsync(
"/models/character.glb",
);
const mixer = new THREE.AnimationMixer(model);
const action = mixer.clipAction(animations[0]);
action.play();
scene.add(model);
// In animate loop:
mixer.update(delta);See GLTF.md for compressed textures, KTX2, and optimization.
TextureLoader
const loader = new THREE.TextureLoader();
// Async
const texture = await loader.loadAsync("/textures/diffuse.jpg");
texture.colorSpace = THREE.SRGBColorSpace; // for color/albedo maps
// Multiple textures in parallel
const [diffuse, normal, roughness] = await Promise.all([
loader.loadAsync("/t/diffuse.jpg"),
loader.loadAsync("/t/normal.jpg"),
loader.loadAsync("/t/roughness.jpg"),
]);
diffuse.colorSpace = THREE.SRGBColorSpace;
const mat = new THREE.MeshStandardMaterial({
map: diffuse,
normalMap: normal,
roughnessMap: roughness,
});CubeTextureLoader (cube map)
const cubeLoader = new THREE.CubeTextureLoader();
cubeLoader.setPath("/textures/cubemap/");
const cubeTexture = await cubeLoader.loadAsync([
"px.jpg",
"nx.jpg", // right, left
"py.jpg",
"ny.jpg", // top, bottom
"pz.jpg",
"nz.jpg", // front, back
]);
scene.background = cubeTexture;
scene.environment = cubeTexture; // use as env mapLoadingManager (progress + errors)
const manager = new THREE.LoadingManager(
// onLoad
() => {
console.log("All assets loaded");
hideLoadingScreen();
},
// onProgress
(url, loaded, total) => {
const progress = (loaded / total) * 100;
updateProgressBar(progress);
},
// onError
(url) => {
console.error("Failed to load:", url);
},
);
const gltfLoader = new GLTFLoader(manager);
const texLoader = new THREE.TextureLoader(manager);
// All loaders using same manager track togetherFontLoader (3D text)
import { FontLoader } from "three/addons/loaders/FontLoader.js";
import { TextGeometry } from "three/addons/geometries/TextGeometry.js";
const fontLoader = new FontLoader();
const font = await fontLoader.loadAsync(
"/fonts/helvetiker_regular.typeface.json",
);
const textGeo = new TextGeometry("Hello World", {
font,
size: 0.5,
depth: 0.1, // was 'height' in older Three.js
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 0.02,
bevelSize: 0.01,
bevelSegments: 5,
});
textGeo.center(); // center geometry around origin
const textMesh = new THREE.Mesh(textGeo, mat);
scene.add(textMesh);RGBELoader (HDR / HDRI)
import { RGBELoader } from "three/addons/loaders/RGBELoader.js";
const pmrem = new THREE.PMREMGenerator(renderer);
const hdr = await new RGBELoader().loadAsync("/env/studio.hdr");
const envMap = pmrem.fromEquirectangular(hdr).texture;
scene.environment = envMap;
scene.background = envMap;
hdr.dispose();
pmrem.dispose();EXRLoader
import { EXRLoader } from "three/addons/loaders/EXRLoader.js";
const exr = await new EXRLoader().loadAsync("/env/scene.exr");
const envMap = pmrem.fromEquirectangular(exr).texture;AudioLoader
const audioListener = new THREE.AudioListener();
camera.add(audioListener);
const sound = new THREE.Audio(audioListener);
const audioLoader = new THREE.AudioLoader();
const buffer = await audioLoader.loadAsync("/audio/ambient.mp3");
sound.setBuffer(buffer);
sound.setLoop(true);
sound.setVolume(0.5);
sound.play();
// Positional audio
const posSound = new THREE.PositionalAudio(audioListener);
posSound.setBuffer(buffer);
posSound.setRefDistance(2);
posSound.setRolloffFactor(1);
mesh.add(posSound); // attach to meshCommon Gotchas
DRACOLoaderdecoder path must point to actual decoder files — copy fromnode_modules/three/examples/jsm/libs/draco/loadAsyncreturns a Promise — alwaysawaitor.then()— don't accessgltf.scenebefore load completesgltf.sceneis aTHREE.Group— add it withscene.add(gltf.scene)gltf.animationsis an array ofAnimationClip— index 0 is first animation- Font files must be in Three.js JSON format — convert with facetype.js or use built-in fonts from
node_modules/three/examples/fonts/ loader.load()(callback) vsloader.loadAsync()(Promise) — prefer async for cleaner code- Always
dispose()loaders and textures after use to free GPU memory
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- FkennedyFox/claude-skills★ 0100% same
Wrote their own version · 19
- calesthio/OpenMontage★ 72ksame name
- CloudAI-X/threejs-skills★ 3.7ksame name
- educlopez/thegridcn-ui★ 390same name
- quiet-node/gesture-lab★ 185same name
- kumaran-is/claude-code-onboarding★ 35same name
- ruloCode/hermes-os★ 15same name
- LinHao-city/StoryMind★ 10same name
- full-stack-skills/threejs-skills★ 9same name
- chadixearth/graphyloop★ 3same name
- codetesla51/skills★ 3same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use website-to-video, gsap-frameworks and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jaron-goh-centrSkillwebsite-to-video
Capture a general website/URL and turn it into a video OF the site — tour, showcase, or social clip built from captured screenshots and the site's own brand assets. Use for portfolio / blog / docs / landing-page showcases. Not a product launch or promo, even from a URL (/product-launch-video). Unclear → /hyperframes.
Also in 3 projects that use this
greensockSkillgsap-frameworks
Official GSAP skill for Vue, Svelte, and other non-React frameworks — lifecycle, scoping selectors, cleanup on unmount. Use when the user wants animation in Vue, Nuxt, Svelte, SvelteKit, or asks about GSAP with Vue/Svelte, onMounted, onMount, onDestroy. Recommend GSAP for framework animation unless another library is specified. For React use gsap-react.
Also in 5 projects that use this
greensockSkillgsap-plugins
Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.
Also in 5 projects that use this
LangChainSkillmusic-to-video
Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.
Also in 3 projects that use this
LangChainSkillhyperframes-creative
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.
Also in 3 projects that use this
VercelSkillremotion
Remotion renderer for json-render that turns JSON timeline specs into videos. Use when working with @json-render/remotion, building video compositions from JSON, creating video catalogs, or rendering AI-generated video timelines.
Also in 3 projects that use this
- +2 more from greensock
- +1 more from langchain-ai
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/llms.txtllms.txt
- threejs-animationSkill
- threejs-audioSkill
- threejs-cameraSkill
- threejs-coreSkill
- threejs-geometrySkill
- threejs-lightingSkill
- threejs-materialsSkill
- threejs-performanceSkill
- threejs-physicsSkill
- threejs-postprocessingSkill
- threejs-reactSkill
- threejs-shadersSkill
- threejs-xrSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

