← Open Source

End-to-end workflow and template for turning 3D Gaussian Splats into photorealistic, collision-free Blender/Cycles 3D models using collaborating agents.

Python
Momentum
+22stars in 24 hours+8.1%
292
Stars
26
Forks
1
Contributors
Created 2026-11-29 · Updated 2026-12-06 · #733 today
Top developers
hinderling
README

Splat-to-Model

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.


Why This Exists

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:

  1. 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.
  2. 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.


End-to-End Workflow (Step by Step)

Phase 1: Real-World Capture & Drift-Free 3D Gaussian Splatting

Detailed Phase 1 reference and open-source stack: template/splat_pipeline/README.md

Step 1: Capture with Deliberate Revisits

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.

Step 2: Feature Matching, Revisit Loop Closure & Pose Refinement (COLMAP / pycolmap)

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.

  1. Run feature extraction and sequential matching to build an initial sparse point cloud (points.ply / sparse/0).
  2. Detect revisit pairs (frames whose initial poses are spatially close, e.g. within ~0.6 m and ~45°, yet separated in time) and match them geometrically.
  3. 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.
  4. 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.

Step 3: Train the 3D Gaussian Splat (Brush or nerfstudio)

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.


Phase 2: Agentic Splat-to-3D Reconstruction (Iterative Loop)

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]

Step 4: Survey, Partition & Measure Shared Support Frames

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.

Step 5: Multi-Angle Discovery, Independent Modeling & 1-px Edge Reviews

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 px alignment, catching shifted panels, buttons, and ports immediately.

Step 6: Assemble, Stitch Seams & Run Parallel Realism Audits

Once independent modules pass per-part review and are assembled into one scene, run focused, fresh-eyes reviewer passes across the full room:

  1. Between-Zone Gaps, Clipping & Wiring: Hunt for unclaimed items between zones, run automated 3D BVHTree collision audits, and route cables/hoses/ducts end-to-end from real source ports to destination ports with zero dangling stubs.
  2. 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.
  3. Domain & Mechanical Accuracy: Verify functional axes, clearances, and clean kinematic Pivot sub-roots on articulated assemblies.
  4. 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.

Step 7: Watch Quality Converge Over Iterations

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:


Using This Repository as a Template

This repository is structured so reusable, scene-agnostic code is cleanly separated from your local scene data (scenes/ is gitignored by default).

Repository Structure

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)

Quickstart for a New Scene

  1. Install prerequisites:

  2. Initialize your scene folder:

    mkdir -p scenes/my_room/{data,parts,textures,renders}
    cp scene_config.example.json scenes/my_room/scene_config.json

    Drop your trained splat.ply, points.ply, and transforms.json into scenes/my_room/data/ and update scenes/my_room/scene_config.json.

  3. 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
  4. Author modular parts: Create independent part modules in scenes/my_room/parts/ (each exposing build(root, cfg) using template/scene_helpers.py).

  5. 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"
Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store