AI · GitHub repo

img2threejs

Rebuilds reference images as procedural, animation-ready Three.js models in code.

Visit github.com ↗

img2threejs is an open-source tool and AI coding skill that turns reference images into clean, procedural Three.js TypeScript code without using mesh files or photogrammetry. It runs through agent environments like Claude Code and Codex, employing deterministic Python scripts and vision review gates to build models in token-efficient passes. The output includes structural hierarchies with pivots and sockets, making the generated 3D assets immediately ready for animation in the browser.

What it's for

  • Reconstruct 3D assets from reference images directly as procedural Three.js code
  • Generate lightweight, code-only 3D models for web frontends without loading GLTF or mesh files
  • Equip AI coding agents with a structured visual pipeline for procedural 3D modeling
  • Build interactive or animatable 3D characters and props with runtime pivots and sockets

Features

  • Code-only procedural generation using Three.js primitives, procedural shaders, and generated geometry
  • Staged sculpting pipeline advancing through blockout, structure, form, material, surface, and lighting passes
  • Strict quality gates that halt generation until detail inventories and likeness thresholds pass
  • Multi-view silhouette carving and visual hull estimation for consistent volumetric geometry
  • Domain plugin ecosystem supporting weapon skins, rigged characters, and GLB target formats
  • Runtime hierarchy setup that exports pivots, sockets, colliders, and animation ticks

Pricing

Open source. Free and open source under Apache-2.0

Details

Type
GitHub repo
Category
AI
Topic
3D Generation
Open source
Yes
Platforms
Command line, Web, Code library
For
Creative technologists, Three.js developers, and frontend engineers using AI coding agents.
Alternative to
Tripo3D, TRELLIS, Meshy
Tags
threejs, webgl, image to 3d, claude code, procedural, typescript, python

Why it was saved

  • @chase.h.ai, 3 August 2026: Allows AI agents to rebuild 3D assets directly from reference images purely through Three.js code without downloading mesh files.

Compare

Related

  • Meshy

    Turn text prompts and 2D images into textured, printable 3D models.

  • 3D Model Generator

    Turn freehand sketches into textured 3D models inside a Three.js scene

  • microsoft/TRELLIS.2-4B

    Open-source 4B flow-matching model generating textured 3D assets from single images.

  • TRELLIS

    AI model that generates textured 3D assets from single images

  • Tripo AI

    AI generator converting text and 2D images into 3D models.

  • World Labs

    Spatial AI models that turn images, text, and video into 3D worlds

All 8 in 3D Generation →

Updated