AI product Open source
img2obj is a Codex plugin that reconstructs an object from an attached image, screenshot, or local image path as a code-only, procedural Three.js model. It first validates the reference, then plans an ObjectSculptSpec covering the component hierarchy, geometry, materials, pivots, sockets, motion requirements, and visual priorities. The model is built through blockout, form, look-development, and interaction phases; browser renders are compared with the source image, with quality evidence and approval required before advancing.
The plugin generates procedural Three.js geometry rather than extracting or downloading a mesh. It supports hard-surface and organic assets, vegetation, fabric, glass, hair or fur, emissive elements, and decals; can define animation-ready parent-child relationships, detachable parts, pivots, and sockets; and can produce reference-derived PBR evidence such as palette, roughness, height, normal, and ambient-occlusion maps. It is intended for stylized props, mechanical objects, plants, scene assets, and interactive models, not photogrammetry, exact mesh extraction, or guaranteed production-ready geometry from a single image. The repository requires Codex with local plugin support, Python 3.10 or newer, and a browser project using Three.js.
1 use taken from transcripts — each links to the moment in the video.
A Codex plugin that guides an agent through rebuilding a photographed object in Three.js by sculpting from blockout to detailed surface. It produces procedural code with pivots and sockets for animation rather than using photogrammetry.
1 in the library.