The img2threejs tool allows for converting 2D images into compact TypeScript code that generates procedural 3D geometry directly in the browser.

image

What Happened

A tool called img2threejs has been developed which, instead of using standard heavy meshes or photogrammetry methods, creates objects from primitives and procedural geometry. The latest version 1.3 includes support for improved PBR materials and InstancedMesh for optimization. The result is an object hierarchy with pivots, sockets, and collisions, ready for animation and use within the Three.js environment.

Context

The traditional approach to delivering 3D content to the web often requires downloading gigabytes of geometric data, which strains network bandwidth and client resources. This project proposes a paradigm shift toward 'code-as-geometry,' where high-level programmatic instructions are transmitted instead of raw polygons.

Why It Matters for the Industry

The project offers a token-efficient approach to 3D content generation, significantly reducing requirements for network bandwidth and data delivery infrastructure. This opens up possibilities for creating ultra-lightweight Web3D applications and simplifies the integration of procedural models into modern web stacks.

Why It Matters for Users

Developers and designers can quickly create high-quality 3D models (especially hard-surface forms) directly in the browser based on a single photograph. The resulting objects are not just static models, but programmatically controllable entities ready for interaction and animation without the need for complex CAD pipelines.

What Is Not Yet Known / Limitations

Caution should be exercised when integrating this into enterprise pipelines due to limitations regarding the complexity of the generated objects.

Sources

Author

Look at AI, Editorial Team