img2threejs turns a single reference photo into a TypeScript THREE.Group factory built from primitives and shaders, not imported meshes. It runs inside coding agents with Python gates and browser rendering checks.
Overview
img2threejs rebuilds subjects from reference images as code-only Three.js scenes. Output is editable TypeScript with hierarchy pivots and sockets aimed at animation, while deliberately avoiding photogrammetry mesh extraction or downloaded art packs.
A staged pipeline moves from blockout through structure, materials, lighting, and interaction passes, each blocked by quality gates and vision-reviewed comparisons. Python scripts handle validation, spec authoring, manifests, and state; model tokens focus on visual judgment and code generation rather than repetitive mechanical checks.
The base skill works across Claude Code, Codex, OpenCode, or Hermes, using whatever vision or browser tooling the host provides. Optional domain plugins add checklists and review rules for areas such as characters or game weapon families, and a resumable forge state file can continue multi-session runs.
Character and object tracks support detail inventories, multi-view carving, likeness projection for faces, and material reference crops tied to a versioned material registry. A public gallery demonstrates live browser results generated entirely from procedural code without runtime mesh downloads.
Key features
- Reference-to-TypeScript THREE.Group factories
- Multi-pass sculpting with quality gates
- Pure Python validation and pipeline state
- Agent-agnostic skill installation
- Optional domain plugin harness
- Character anatomy and likeness paths
- Browser-side render comparison reviews
- Token-focused script versus model split
Use cases
- Rebuilding props for WebGL demos
- Maintaining editable 3D source instead of GLB
- Agent-guided hard-surface reconstruction
- Character likeness studies from one photo