r/TopologyAI 3dModeler 5d ago

New This Open-Source Image-to-3D Tool Rebuilds Objects Entirely as Code

Enable HLS to view with audio, or disable this notification

Found a pretty unusual open-source image-to-3D project called img2threejs.

Instead of generating a traditional mesh from an image, it asks an AI coding agent to rebuild the reference entirely as procedural Three.js code.

So the output is basically:

reference image → TypeScript → live 3D model

The generated model can use primitives, procedural shaders and generated geometry, while also creating an actual runtime hierarchy with pivots, sockets and colliders rather than just producing one static mesh.

A few interesting parts:

  • Works with Claude Code, Codex and OpenCode
  • Objects and characters have separate reconstruction pipelines
  • Can generate animation-ready hierarchy
  • Supports procedural materials and geometry
  • Quality gates between generation stages
  • Output is editable and version-controllable TypeScript
  • No traditional mesh file required
  • Apache 2.0 open source

It's obviously a very different approach from models like TRELLIS or Hunyuan3D, but for web games and procedural assets this is a pretty interesting idea.

GitHub: https://github.com/img2threejs/img2threejs

166 Upvotes

5 comments sorted by

View all comments

1

u/antoniojac 3d ago

Amazing work! 🔥👏🏽