3d-model-anything README

The project's README from github.com/wesbos/3d-model-anything. As one markdown file: README.md.

3D Model Anything

Watch the video: 3D Model Anything

Capture a room on an iPhone, then use its geometry and photographs to build an editable Three.js scene with an AI coding agent.

Open the office viewer · App support

This repository includes the 3D Model Anything iPhone app, a Three.js viewer, the scan-to-threejs agent skill, and Wes’s detailed office demo.

The app records the evidence. The skill guides an agent through measurement, modeling and matched-camera visual comparisons. This is an iterative reconstruction workflow, not a one-click scan-to-perfect-model converter. The current workflow focuses on rooms and interiors.

Run the viewer

Use Node.js 22.12+ (or a newer supported release).

npm ci
npm run dev

Open http://localhost:5188. Explore the office in dollhouse, walking, overhead, wireframe and knolling views. The playground is at /play.html?room=office-v4&mode=fpv.

npm run build
npm run preview

The demo includes the reconstructed office and selected textures. Original scans and photo collections are not distributed; Scan and Overlay are disabled for this example. Those modes remain available for your own rooms with reference assets.

Capture your own space

See the iPhone app for building with Xcode, device requirements, scanning and sharing. Scanning needs a LiDAR-equipped iPhone or iPad. Non-LiDAR devices can import and review scans.

The app is source-available here; an App Store release is a separate distribution step. Do not assume an App Store download is available yet.

Export a room or session through the system share sheet and extract it into an ignored data/captures-in/<room>/ directory. Exports keep the existing house-capture/5 contract; changing the app name does not change the files.

Use the skill

The skill lives at .agents/skills/scan-to-threejs/SKILL.md. Open this repository in an agent that supports local skills and ask it to use scan-to-threejs with your extracted export. You can also copy that skill directory into your agent's skill directory; the companion viewer/runtime in this repo is still needed for its capture workflow.

Example request:

Use scan-to-threejs to rebuild the room in data/captures-in/my-room. Inspect the measurements and photos, create an editable scene, and compare rendered views with the original photographs.

Start with the format guide and project layout. Helpers need Python 3; photo comparisons need Pillow, and optional depth reconstruction needs NumPy, Open3D and Pillow. Capture scripts use the agent-browser CLI.

A new room goes in demos/<id>/ and is registered in demos/index.ts. The office example retains its earlier reconstruction layers (office-v2, office-latest, office-v4) to preserve the final geometry.

Privacy and licensing

Only the office example is distributed. No other rooms, connected-house layout, original scan bundles, or development Git history are included. Keep your captures private; inspect assets before publishing your own demo.

Reusable source code and the skill are MIT licensed. The supplied office images/textures have separate asset terms. Third-party marks, artwork and depicted products are not licensed by the code license.

See release status for validation and iPhone distribution steps.

3d-model-anything (wesbos/3d-model-anything)

numpy
Searching Database…

What is this?It is a toolkit for capturing a room with an iPhone's LiDAR and camera, then turning that scan into an editable Three.js 3D scene with the help of an AI coding agent.
Is this one app, or several pieces working together?It bundles four parts: the 3D Model Anything iPhone app that records scans, a Three.js browser viewer, an agent skill called scan-to-threejs that guides the reconstruction, and a sample office demo.
How do I try the included demo?Install Node.js 22.12 or newer and open the viewer locally to explore the reconstructed office in dollhouse, walking, overhead, wireframe and knolling views, for example at /play.html?room=office-v4&mode=fpv.
What do I need to capture and process my own room?Scanning requires a LiDAR-equipped iPhone or iPad and Xcode to build the app; the reconstruction helpers need Python 3, with Pillow for photo comparisons and optionally NumPy and Open3D for depth reconstruction.
Does scanning give me a finished 3D model automatically?No, it's an iterative reconstruction workflow guided by an agent, not a one-click scan-to-perfect-model converter, and currently only supports rooms and interiors.
Is the iPhone app available on the App Store yet?No, the app is currently source-available in this repository only; an App Store release is a separate, not-yet-confirmed distribution step.
Does this repo include other people's scanned rooms?No, only the sample office demo is distributed; original scans, the connected-house layout, and the development history are excluded, and users are told to keep their own captures private.
What's the licensing situation?The code and the agent skill are MIT licensed, but the office demo's images and textures carry separate asset terms, and any third-party marks or depicted products aren't covered by the code license.
What does the scan-to-threejs skill actually do?It guides an AI coding agent through measuring the exported capture, modeling the room in Three.js, and comparing rendered views against the original photographs to refine accuracy.
How do I feed my own scan into the agent?Export a room via the iPhone app's share sheet into a local data/captures-in/ folder, then ask an agent that supports local skills to run scan-to-threejs on that export.
Can I use this if my phone has no LiDAR?Non-LiDAR iPhones and iPads can still import and review existing scans, but they cannot perform the LiDAR-based capture itself.
Where do new rooms get added for the viewer?Each new room is placed in a demos/ folder and registered in demos/index.ts so the Three.js viewer can load it.
Creator
wesbos
Size
35.2 MB
Stars
3.1K
Updated
CommitOct 22
Age
1mo
Commits · 90 Days