Skip to content

Three.js Scene Builder

Verified

Build interactive 3D scenes with Three.js and WebGL. Handles geometry, materials, lighting, animation loops, GLTF model loading, and post-processing effects.

By Anthropic 2,800 v1.0.0 Updated 2026-03-05

Install

Claude Code

Copy the SKILL.md file to .claude/skills/threejs-scene.md

About This Skill

Three.js Scene Builder enables your AI agent to construct rich 3D web experiences using the Three.js ecosystem, from simple geometry scenes to complex animated environments with physically based rendering.

Scene Setup

The skill correctly initializes the render loop with requestAnimationFrame, handles canvas resizing with proper device pixel ratio, and sets up a Scene, Camera, and WebGLRenderer with sensible defaults. It configures tone mapping and color space for physically correct rendering.

Lighting and Materials

Understands the difference between ambient, directional, point, and spot lights. Uses PBR materials (MeshStandardMaterial, MeshPhysicalMaterial) with appropriate roughness, metalness, and environment map settings. Generates proper HDR environment maps for realistic reflections.

GLTF and Asset Loading

Uses GLTFLoader with Draco compression support, handles async loading with LoadingManager, and extracts animations for use with AnimationMixer. Manages material overrides and instance meshes for performance.

Performance Optimization

Instances repeated geometry, disposes unused textures and geometries, uses LOD for distant objects, and leverages OffscreenCanvas for worker-based rendering.

Use Cases

  • Building product configurator with real-time material switching
  • Creating data visualization with 3D charts and particle systems
  • Implementing WebXR scenes for VR/AR browser experiences
  • Animating GLTF models with mixer and morph targets

Pros & Cons

Pros

  • + Handles full render loop setup including resize and pixel ratio
  • + Uses PBR materials correctly for realistic visuals
  • + Manages GLTF asset loading and animation extraction
  • + Applies instancing and disposal for memory efficiency

Cons

  • - Cannot preview the output directly; requires a browser environment
  • - Custom GLSL shader debugging requires manual inspection

Related AI Tools

Related Skills

Stay Updated on Agent Skills

Get weekly curated skills + safety alerts

每周精选 Skills + 安全预警