Skip to content
cd ..~/abhay/projects/wayfarer.md · 5.9K · case study 07 of 09

9 files open · click a tab, or use prev / next at the bottom of the page

// case 07 — 3D vision · 2026

Wayfarer.md

Turns a phone video of a building into a photoreal, walkable 3D twin with indoor navigation.

> Gaussian-splat twins in the browser with metric scale, A* routes and on-site AR arrows.

MY ROLETeam project
TIMELINEOct 2026 · Techfest IIT Bombay
TEAMTeam build · Namma Space
STACK
Gaussian SplattingCOLMAPgsplatOpenCVLaMathree.jsWebXRPython
wayfarer · ?scene=home · walking
$ python pipeline/wayfarer.py walk.mp4 --name home
frames sharp-frame picker (Laplacian blur reject)
sfm COLMAP · GPU SIFT · loop closure
train gaussian splatting (gsplat)
scale ArUco marker · ~1% error
navgrid floor RANSAC · walls · walkable cells
pois COCO detector → beds, sofas, TVs in 3D
OK twin ready · PSNR/SSIM/LPIPS shipped with scene
$
PIPELINE
1Phone video
2COLMAP
3Splatting
4Navgrid
5Web twin
SCALE~1%
SOG vs PLY~11× smaller
ROUTINGA*
Google Maps, but indoors
// 01 — context

the problem_

cat problem.md

Built for Namma Space at Techfest 2026-27 (IIT Bombay): walking directions inside buildings, where GPS doesn't work and floor plans are out of date or don't exist.

Wayfarer starts from the cheapest possible capture, an ordinary phone video, and produces a twin you can walk through in the browser, search for rooms and items, and follow on site with AR arrows.

## constraints
  • Phone video only
  • Runs in any browser
  • Metric scale
  • Unseen floor and ceiling
  • Phones as clients
  • Free hosting
./my-role.sh --verbose

abhay@os ~ % what did I actually do?

  1. 01A one-command pipeline: sharp-frame picking, COLMAP structure-from-motion, Gaussian splatting on the GPU, then a navigation grid.
  2. 02Metric scale from a printed ArUco marker (about 1%), cross-checked against the measured ceiling and camera height.
  3. 03A walkable grid with height-aware free-space carving, and A* routing with smoothing and live re-routing.
  4. 04A COCO object detector that places beds, sofas and TVs in 3D as searchable points of interest, and LaMa inpainting for floor and ceiling the camera never saw.
  5. 05Quality scored on held-out views (PSNR, SSIM, LPIPS) and shipped with every scene.

[ ok ] exit 0 · 5 tasks · owner: abhay

// 02 — results

what moved_

Three numbers I'd put on a slide. Measured in production, not in a benchmark I wrote the night before.

SCALE~1%metric scale errorFrom a printed ArUco marker.
SIZE~11×smaller than PLYSOG compression with full view-dependent colour.
QUALITY3 metricson held-out viewsPSNR, SSIM and LPIPS ship with each twin.
// 03 — architecture

how it fits_

Each pipeline step is resumable, and --force <step> re-runs from there. Shared annotations live apart from scene.json, so re-running never loses them.

open architecture.excalidraw — wayfarer
CAPTURE
Phone videocapture SOP
Frame pickerLaplacian blur reject
frames
RECONSTRUCT
COLMAPGPU SIFT · poses
Splattinggsplat
splats
UNDERSTAND
Navgridfloor · walls
Auto POIsCOCO detector
SurfacesLaMa fill
scene
WEB TWIN
Spark viewerLOD · SOG
RoutingA* · WebXR AR
request / write pathresponse / events backSOG is about 11× smaller than PLY
// 04 — key decisions

git blame me_

adr-001.md
CHOSE

Gaussian splatting

REJECTED

Meshes or NeRF

TRADE-OFF

No clean surfaces for free, but photoreal and real-time in a browser.

adr-002.md
CHOSE

A printed ArUco marker for scale

REJECTED

Guessing scale from the camera

TRADE-OFF

One sheet of paper per capture, but routes and areas come out in real metres.

adr-003.md
CHOSE

A* on an occupancy grid

REJECTED

A navmesh

TRADE-OFF

Coarser paths before smoothing, but pure functions that run in tests and re-route several times a second.

// 05 — under the hood

the good bit_

vim web/src/nav.jsJavaScript
1export function astar(g, start, goal, blocked = g.blocked) {
2 const N = g.w * g.h, s = start[1] * g.w + start[0], t = goal[1] * g.w + goal[0]
3 if (blocked[s] || blocked[t]) return null
4 // octile distance, nudged up 0.1%: open halls are crossed in a
5 // straight sweep instead of flooding (within 0.1% of optimal)
6 const hx = (x, z) => {
7 const dx = Math.abs(x - gx), dz = Math.abs(z - gz)
8 return (Math.max(dx, dz) + 0.41421356 * Math.min(dx, dz)) * 1.001
9 }
10 const heap = new Heap()
11 heap.push(s, hx(start[0], start[1]))
12 // ... pop, expand 8 neighbours, never cut wall corners
13}
NORMAL web/src/nav.js13 lines · utf-8

8-connected A* with an octile heuristic. Search buffers live on the grid and are stamped per search, so re-routing a large venue several times a second allocates nothing.

less lessons.txt

If I built it again, I'd change…

  1. L1Doorways must stay openFree-space carving closed doorways the camera walked through, so camera paths now always stay walkable.
  2. L2Break ties on purposeNudging the A* heuristic up 0.1% makes it sweep straight across open halls instead of flooding them.
  3. L3Ship the scorePutting PSNR, SSIM and LPIPS next to each twin made quality a fact, not an impression.

lessons.txt (END) — press q to quit

// 06 — timeline

git log --since_

Oct 2026 · Techfest IIT Bombay

git log --reverse --format=milestone wayfarer
  1. 01Oct 2026PipelineFrames, COLMAP, splatting, export.
  2. 02Oct 2026NavigationNavgrid, A*, rooms, POIs.
  3. 03Oct 2026On siteAR anchors, phones, deploy.
cd ~/work./contact — itsabhay@abhay.si