threejs-fundamentals
Installation
SKILL.md
Three.js Fundamentals
Work Pattern
- Start with the host app constraints: framework, canvas ownership, layout size, device pixel ratio, and lifecycle hooks.
- Build the minimum scene shell first:
Scene, camera, renderer, animation loop, resize handling, and disposal path. - Keep transforms explicit. Use
Groupfor hierarchy,Object3Dfor pivots, and quaternions when avoiding Euler-order issues. - Pair with
threejs-lighting,threejs-materials,threejs-geometry, orthreejs-loadersonce the base scene is stable.
Quick Start
import * as THREE from "three";