An end-to-end, scene-agnostic workflow and reusable starter kit for turning real-world room captures into drift-free 3D Gaussian Splats and then into photorealistic, collision-free, kinematically clean 3D Blender/Cycles models using collaborating builder and reviewer agents.
3D Gaussian Splatting captures real environments with high fidelity, yet a raw splat cannot easily be edited, relit, animated, or used for CAD/simulation (ray-tracing optical paths, moving doors or stages, swapping furniture, or checking clearances). Conversely, hand-modeling a cluttered real-world room from scratch takes weeks.
Splat-to-Model bridges the gap in two phases:
- Phase 1: Capture to Drift-Free 3D Gaussian Splat: Turn a casual walkthrough into a metric-scale, loop-closed sparse point cloud, refined camera poses (
transforms.json), and a sharp 3DGS.ply. - Phase 2: Agentic Splat-to-3D Reconstruction: Partition the splat into cleanly owned spatial zones, inspect objects from the sharpest original capture poses, build modular Python/Blender geometry in parallel, stitch cross-zone seams and wiring, and run iterative reviewer audits for lighting, mechanics, and lived-in realism.
For the full set of multi-agent collaboration tips, modeling lessons, and Cycles + AgX photorealism notes, see PIPELINE_PROTOCOL.md.
Detailed Phase 1 reference and open-source stack:
template/splat_pipeline/README.md
Record a slow, overlapping sequence of posed RGB frames (for example using a mobile AR odometry capture pipeline, or standard overlapping video/photo frames):
- Lock exposure and white balance: Keep neutral surfaces consistent across angles before starting the walk.
- Move slowly with strong frame-to-frame overlap: Preserve sharp, motion-blur-free images for reliable feature matching.
- Revisit spots deliberately: Pass through the same areas again from different times and viewpoints so loop closure can remove cumulative odometry drift.
Raw real-time odometry drifts by several centimetres over a multi-minute room walk, which causes walls, cables, and equipment to appear twice ("ghosting") wherever you revisit an area.
- Run feature extraction and sequential matching to build an initial sparse point cloud (
points.ply/sparse/0). - Detect revisit pairs (frames whose initial poses are spatially close, e.g. within
~0.6 mand~45°, yet separated in time) and match them geometrically. - Run multi-round triangulation and bundle adjustment with a shrinking reprojection threshold (e.g.
32 → 16 → 8 → 4 px), then align the refined reconstruction back onto metric scale. - For dense multi-thousand-frame scans, optimizing keyframes first and interpolating intermediate poses before a short joint final bundle adjustment reaches sub-pixel revisit consistency at a fraction of the compute cost.
Initialize 3DGS training from the refined sparse point cloud and poses using an open-source trainer such as Brush (Metal / Vulkan / CUDA) or nerfstudio (splatfacto). Holding out a regular stride of frames lets you measure validation sharpness directly:
Export the trained 3DGS .ply alongside transforms.json and points.ply. Blender 5.3+ imports 3DGS .ply files natively for aligned side-by-side inspection and rendering.
Rather than modeling a whole scene in one monolithic pass, the reconstruction runs as a repeatable multi-agent loop:
[1. Survey & Partition] ──► [2. Multi-Angle Explore & Build Parts in Parallel]
│
▼
[5. Polish & Re-Verify] ◄── [4. Parallel Realism, Lighting & Accuracy Audits] ◄── [3. Assemble & Stitch Seams]
Inspect the splat from wide and top-down views, inventory every object, and divide the scene into non-overlapping spatial zones anchored to shared physical surfaces (floors, tables, desks, shelves, walls, ceilings). Grouping items that share a tilted or rotated surface into a single local coordinate frame keeps contacts flush and lets parallel agents own disjoint Python files.
For each zone or hero assembly:
- Explore from multiple angles, prioritizing original capture poses (
transforms.json): Novel rendered angles in a splat can blur or show floating blobs, whereas the nearest ground-truth capture poses are sharpest for identifying real shapes, fine markings, and separating true objects from shadows or glass reflections. - Outline before modeling: List real sub-parts and explicitly discard reconstruction artefacts before generating geometry.
- Verify with 1-px outer + internal edge overlays: Instead of muddy 50/50 alpha blends, compare 1-px thinned reference edges (magenta) against 3D model edges (cyan) where yellow marks exact
≤ 1 pxalignment, catching shifted panels, buttons, and ports immediately.
Once independent modules pass per-part review and are assembled into one scene, run focused, fresh-eyes reviewer passes across the full room:
- Between-Zone Gaps, Clipping & Wiring: Hunt for unclaimed items between zones, run automated 3D
BVHTreecollision audits, and route cables/hoses/ducts end-to-end from real source ports to destination ports with zero dangling stubs. - Lighting & Color Grading: Co-locate physical area lights with modeled fixtures (
visible_glossy = True), match neutral-surface white balance (R/G,B/G) and luminance percentiles (p05 / p50 / p95) quantitatively against the splat, and keep Cycles bounce budgets consistent between stills and animations. - Domain & Mechanical Accuracy: Verify functional axes, clearances, and clean kinematic
Pivotsub-roots on articulated assemblies. - Lived-In Photorealism: Layer subtle real-world cues including neutral clear-slab glass/acrylic with smudges, micro-scratches, and upward-facing dust haze; bead-blasted dark anodized metals lifted out of pure black; floor reflections and traffic scuffs; tape, stickers, and crisp vector decals.
Comparing the exact same camera poses across passes shows how each audit cycle closes the realism gap, from initial modular assembly, through lighting, wiring, and material calibration, to analytical sculpting and fine hardware accuracy:
This repository is structured so reusable, scene-agnostic code is cleanly separated from your local scene data (scenes/ is gitignored by default).
splat-to-model/
├── README.md # End-to-end visual guide (this file)
├── PIPELINE_PROTOCOL.md # Transferable multi-agent, modeling & Cycles+AgX tips
├── scene_config.example.json # Scene-agnostic config template (paths, frames, render defaults)
├── .gitignore # Keeps large .ply/.blend/video files and scenes/ local
├── docs/
│ └── images/ # Workflow & progression figures
├── template/
│ ├── splat_pipeline/README.md # Phase 1: Capture -> COLMAP revisit BA -> 3DGS reference
│ ├── scene_helpers.py # Shared zone frames, PBR/clear-slab shaders & Cycles GPU setup
│ ├── assemble_scene.py # Generic modular scene assembler driven by scene_config.json
│ ├── edge_compare.py # Standalone 1-px outer + internal edge comparison CLI
│ ├── ply_tomography.py # Memory-mapped raw-PLY stats & 3D slab slicer
│ └── bvh_audit.py # Whole-scene Blender BVHTree cross-collection collision audit
└── scenes/ # Put your own scene folders here (gitignored)
-
Install prerequisites:
- Python 3.10+ with
numpy,scipy,pillow,matplotlib - Blender 5.3+ (required for native 3DGS
.plyimport) - For Phase 1:
pycolmap/ COLMAP and Brush (or nerfstudio)
- Python 3.10+ with
-
Initialize your scene folder:
mkdir -p scenes/my_room/{data,parts,textures,renders} cp scene_config.example.json scenes/my_room/scene_config.jsonDrop your trained
splat.ply,points.ply, andtransforms.jsonintoscenes/my_room/data/and updatescenes/my_room/scene_config.json. -
Inspect your point cloud bounds & outlier scale distribution:
python template/ply_tomography.py stats scenes/my_room/data/splat.ply python template/ply_tomography.py slab scenes/my_room/data/splat.ply --z-min 0.70 --z-max 0.85 --out scenes/my_room/renders/table_slab.png
-
Author modular parts: Create independent part modules in
scenes/my_room/parts/(each exposingbuild(root, cfg)usingtemplate/scene_helpers.py). -
Assemble, audit collisions, and verify alignment:
# Assemble all modules into a packed Blender scene blender -b --python template/assemble_scene.py -- --config scenes/my_room/scene_config.json # Check for cross-module mesh clipping with BVHTree blender -b scenes/my_room/scene.blend --python template/bvh_audit.py -- --min-overlap 8 # Compare any splat view against your matched-camera 3D render (1-px edges) python template/edge_compare.py splat_view.jpg model_view.jpg compare_edges.jpg --title "Hero View"






