Agent skill that rebuilds the object in a reference image as a procedural, animation-ready Three.js model
open sourceApache-2.0free
img2threejs is an agent skill that takes one reference image of an object or character and writes a TypeScript three.js factory that recreates it from primitives, procedural shaders and generated geometry, with pivots, sockets and colliders so it can be animated. It works through staged passes (blockout, structure, form, material, surface, lighting, interaction, optimization), reviews each render against the reference, and uses deterministic Python scripts for validation and gating so model tokens go to visual judgement and code. It runs under Claude Code, Codex, OpenCode and Hermes Agent, with optional domain plugins from a separate img2 harness.
Problems it solves
- turn a product photo into a Three.js model my coding agent can write as code
- get a 3D model for a web scene without photogrammetry or downloading mesh files
- a coding agent that builds animation-ready Three.js objects from a reference picture
Features
- one reference image to a TypeScript THREE.Group factory built from primitives and procedural shaders
- staged build passes with a vision review and quality gate after each
- runtime hierarchy of pivots, sockets and colliders for animation
- installs into Claude Code, Codex, OpenCode and Hermes Agent with npx img2threejs install
- optional domain plugins through the separate img2 harness
Limitations
Alternatives
The same job
These do what img2threejs does.
- image-blaster Claude skills that turn a single image into a 3D environment, object meshes and sound effects
- imageto3dmodel.io Image to 3D model for indie games and AI creators
