How adarcside/nsiitb works
Namma Space reconstructs indoor phone video into a walkable browser scene. The documented workflow validates capture, selects frames, recovers poses, trains and exports a Gaussian splat, normalizes it to room scale, compresses assets, and writes a manifest consumed by the viewer. The graph retains the principal reconstruction stages and viewer capabilities. Relationships among pipeline stages follow the README’s explicit workflow; source excerpts and the SOURCE INDEX support the other shown links. Some stage internals were not sampled, so their internal dependencies are not expanded.
Main entry points: main.ts Viewer application · s06_normalize.py Level and scale scene · manifest.ts Manifest and asset loader · run_pipeline.py Pipeline runner
Components 24
Capture reconstruction
- Pipeline runner
pipeline/run_pipeline.py - Validate capture
pipeline/stages/s01_validate.py - Select sharp frames
pipeline/stages/s02_frames.py - Recover camera poses
pipeline/stages/s03_poses.py - Train Gaussian splat
pipeline/stages/s04_train.py - Splatfacto adapter
pipeline/trainers/splatfacto.py - Export and validate PLY
pipeline/stages/s05_export.py - Quality gates and reports
pipeline/common.py
Scene preparation
- Level and scale scene
pipeline/stages/s06_normalize.py - Normalization math
pipeline/normalize.py - Build walkable grid
pipeline/grid.py - Compress scene assets
pipeline/stages/s07_compress.py - Write scene manifest
pipeline/stages/s08_manifest.py
Browser viewer
- Viewer application
viewer/src/main.ts - Manifest and asset loader
viewer/src/loader/manifest.ts - Splat renderer adapter
viewer/src/renderer/spark_adapter.ts - First-person movement
viewer/src/controls/movement.ts - Height-aware grid collision
viewer/src/collision/grid.ts - Ghost collision mode
viewer/src/collision/ghost.ts - Viewer controls and status
viewer/src/ui/app_ui.ts
Shared contracts
- Manifest validator
viewer/src/contracts/validator.ts
Other components
- Phone capture
- Room visitor
- Scene asset host
Connections 23
- Phone capture → Pipeline runner: provides video and metadata
- Pipeline runner → Validate capture: runs stage
pipeline/run_pipeline.py - Validate capture → Select sharp frames: passes validated capture
- Select sharp frames → Recover camera poses: supplies frames
- Recover camera poses → Train Gaussian splat: supplies camera poses
- Train Gaussian splat → Splatfacto adapter: uses trainer
pipeline/stages/s04_train.py - Train Gaussian splat → Export and validate PLY: exports trained scene
- Export and validate PLY → Level and scale scene: provides PLY
pipeline/stages/s06_normalize.py - Level and scale scene → Normalization math: uses transform math
pipeline/stages/s06_normalize.py - Level and scale scene → Build walkable grid: builds collision grid
pipeline/stages/s06_normalize.py - Level and scale scene → Compress scene assets: provides normalized scene
- Compress scene assets → Write scene manifest: provides compressed assets
pipeline/stages/s08_manifest.py - Pipeline runner → Quality gates and reports: records stage results
pipeline/run_pipeline.py - Room visitor → Viewer application: walks scene
- Viewer application → Manifest and asset loader: loads scene
viewer/src/main.ts - Manifest and asset loader → Manifest validator: validates manifest
viewer/src/loader/manifest.ts - Manifest and asset loader → Scene asset host: fetches manifest and assets
viewer/src/loader/manifest.ts - Viewer application → Splat renderer adapter: loads and renders splat
viewer/src/main.ts - Viewer application → First-person movement: updates movement
viewer/src/main.ts - Viewer application → Height-aware grid collision: uses grid collision
viewer/src/main.ts - Viewer application → Ghost collision mode: switches collision mode
viewer/src/main.ts - Viewer application → Viewer controls and status: updates interface
viewer/src/main.ts - Write scene manifest → Manifest and asset loader: publishes viewer manifest