The default demo now recreates the supplied cafΓ© photograph using 24 model types, including original chess pieces. See Photo cafΓ© demo for the estimated layout and asset sources.
Scan reality. Let AI understand and reconstruct it.
InteLiDar turns a physical room into an interactive semantic digital twin.
LiDAR supplies measured geometry. AI supplies labels, materials, cleanup, and spatial questions. The 3D viewer highlights answers in place.
LiDAR gives the shape. AI gives the understanding and appearance.
This repository is a hackathon MVP. Capture and computer vision are designed in; the running app uses a demo meeting-room scan, a FastAPI scene graph, and a React Three Fiber viewer.
| Capability | Status |
|---|---|
| Browser 3D viewer (raw wireframe β labelled twin) | Working |
| Progressive sweep-in: geometry arrives with the sensor beam | Working |
| Demo LiDAR-style ingest (unlabelled boxes + room bounds) | Working |
| Reconstruct: labels, materials, analysis log | Working |
| Spatial assistant: ask β reply + 3D highlights | Working |
| Floor-plan edit: drag furniture and equipment | Working |
| Desktop avatar play with furniture GLBs and collisions | Working |
| Local static GLB room import and setup | Working |
| OpenAI ask adapter (heuristic fallback without a key) | Working |
| LiDAR iPhone capture + Safari import | Native source and file import implemented; Xcode/device verification pending (setup) |
| Simulated capture (no device needed) | Working β a generated 18 Γ 11.6 m office floor, 106 objects (capture) |
| Export: scan file, schedule, floor plan, 3D model | Working (export) |
| Image-based detection and segmentation | Not started |
Open http://localhost:5173 after setup. Press AI Reconstruct, then ask Show me all the chairs.
| Doc | Contents |
|---|---|
| Getting started | Install, env, run, troubleshooting |
| Demo script | Walkthrough for a live presentation |
| Design | Engineering map, constraints, build order |
| Architecture | Layers, data flow, frontend state |
| Capture | What the "scanner" really is, and the ingest seam |
| Capture geometry | Squaring a scan up, bounds, origin, precision |
| Export | Scan file, object schedule, floor plan, 3D model |
| HTTP API | Ingest, reconstruct, ask, examples |
| Scene graph | Canonical JSON, coordinates, classification |
| Frontend | Viewer, HUD, reconstruct UX, edit mode |
| Desktop playable rooms | Keyboard/mouse play, local GLB import, supported files |
| Development | TDD, tests, scripts, seams |
| Deploy | Vercel, env vars, the same-origin requirement |
| Roadmap | MVP must-haves, nice-to-haves, later work |
| Test audit | Coverage map and remaining gaps |
| Contributing | How to change this repo |
| Docs index | All guides in one list |
Requires Node.js 20+ and Python 3.11+.
cp .env.example .env # optional: set OPENAI_API_KEY for LLM ask
npm install
cd backend
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
cd ..Terminal 1 β API on port 8000:
npm run backendTerminal 2 β Vite on port 5173 (proxies /scene and /health):
npm run devnpm test # Launcher tests + Vitest + pytest + Playwright E2EWithout a real OpenAI key, ask uses a keyword reasoner over the scene graph. The key must stay in .env on the backend β never prefix it with VITE_.
Full walkthrough: docs/getting-started.md.
- Load the viewer. The sensor sweeps the room: returns land where the beam points, and each box resolves as the beam reaches it. Press Skip to jump to the end.
- The sweep leaves a raw mesh: wireframe room, unlabelled boxes, a settled point cloud.
- Press β¨ AI Reconstruct. Classification steps play in the HUD (
Unknown object β Chair Γ 4, and so on). - The scene becomes a semantic twin, materialising object by object: materials, labels, lighting.
- Ask Show me all the chairs. Matching objects glow in the canvas, and so do their rows in the scene list.
- Toggle Edit and drag tables, chairs, and equipment on the floor. Select an object in Appearance to change its shape, textured material, and color. Doors and windows stay fixed in position; their appearance can still change. Appearance edits last for the current page session.
- No iPhone to hand? Open Import scan β Load simulated scan for a generated open-plan office floor β 18 Γ 11.6 Γ 3.1 m, 106 objects, five times the demo room's area β and run the same path on it: sweep, reconstruct, ask, edit, renovate. Nothing in it was measured, and every surface says so. See capture.
- Press Export to take the room with you: the scan file re-imports with your edits, the object schedule opens in a spreadsheet, the floor plan prints, and the 3D model opens in Blender β or straight back through Import room. See the export guide.
- Open Renovate to browse 26 models from
models/, preview them, and add furniture at its real-world scale. Select existing or added furniture to rotate or remove it; Undo reverses the last add or removal. See the renovation guide. Layout changes last for the current page session.
Suggested questions once reconstructed:
Show me all the chairs.
Where is the door?
What objects could obstruct movement through this room?
On the simulated floor those answers get interesting: 27 chairs across four zones, two doors, and a room dense enough that the viewer names only what the answer highlighted.
Useful 3D models of real rooms are still expensive to produce.
Traditional scans yield noisy meshes, missing surfaces, weak textures, and no semantics. A chair, a wall, and a doorway are all just geometry.
InteLiDar keeps the measured structure and adds a machine-readable scene on top of it.
The intended pipeline is:
LiDAR scan β room mesh + RGB frames
β computer vision (detect, segment, openings)
β semantic scene graph
β AI cleanup, materials, Q&A
β interactive digital twin
The MVP does not invent a room from images. A fixture graph stands in for the scan. Reconstruct classifies that graph. Ask reasons over it.
See docs/architecture.md for what runs versus what is planned.
Capture. A LiDAR-capable iPhone or iPad records walls, floor, ceiling, openings, large objects, and metres-accurate bounds. The MVP uses POST /scene/ingest with an empty body as that scan.
Understand. RGB (later) and geometry (now) attach types, materials, and confidence to each object. Reconstruct never changes object ids, so highlights survive the mode change.
Interact. The spatial assistant returns { reply, highlightIds }. The viewer only paints ids that exist on the graph. Edit mode moves furniture in the same graph the assistant reads.
βββββββββββββββββββββββββββ
β Capture (planned) β
β ARKit / RoomPlan β
ββββββββββββββ¬βββββββββββββ
β
βββββββββββββββββββββββββββ
β Semantic scene graph β β source of truth (MVP starts here)
ββββββββββββββ¬βββββββββββββ
β
βββββββββ΄βββββββββ
β β
Reconstruct Ask
(labels) (reply + ids)
β β
βββββββββββββββββββββββββββ
β React + R3F viewer β
β HUD Β· highlights Β· edit β
βββββββββββββββββββββββββββ
Keep geometry, semantics, and presentation separate. The graph is JSON. The canvas is a projection of it.
| Layer | Choice |
|---|---|
| Viewer | Vite, React 19, Three.js, React Three Fiber, Drei |
| API | Python 3.11+, FastAPI, Pydantic v2, Uvicorn |
| Ask | OpenAI chat completions (JSON) when OPENAI_API_KEY is set; otherwise heuristics |
| Tests | Vitest (src/**/*.test.ts{,x}), Pytest (backend/tests), Playwright (e2e) |
RoomPlan capture source and export/import setup: ios/README.md. Planned: YOLO / Grounding DINO / SAM and glTF asset swap.
LiDAR measures the room. The model does not have to invent walls and furniture from pixels alone.
AI is used where it is strongest: classifying objects, choosing materials, reasoning about layout, answering questions, and driving the HUD.
- Construction β site twins, hazards, change between scans
- Robotics β semantic maps of unfamiliar rooms
- Interior design β editable layout from a phone scan
- Real estate β interactive property models
- Warehousing β inventory location and circulation
- Facility management β searchable equipment in space
Most AI sees text and images. InteLiDar adds space: positions, dimensions, and distances.
The long-term goal is a spatial memory layer β persistent, queryable digital worlds built from real environments.
InteLiDar transforms a LiDAR scan into an AI-enhanced semantic digital twin.
Scan a room. Recover its structure. Let AI name what is there. Then work with the physical world through its digital copy.