# Three.js Scene Setup

> Gets a three.js 3D scene running in the browser with a smooth render loop, resizing and a quick health check.

- Page: https://youraiskill.com/skill/gamedev-skills-threejs-scene-setup
- What it does: Sets up and debugs a plain three.js r187 game or 3D scene: import maps, Scene, PerspectiveCamera and WebGLRenderer, setAnimationLoop with Timer, resize, OrbitControls and WebGPURenderer. Use on "Failed to resolve module specifier three", a black canvas or nothing animating. Not for GLB loading (`threejs-gltf-loading`), materials (`threejs-materials-lighting`) or React Three Fiber.
- Niches: frontend, games
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (2 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
