# splat-capture-to-web-viewer

Video to Gaussian splat to web page: extract sharp frames, solve camera poses (pycolmap/GLOMAP), train (Brush on Metal or gsplat/3DGS on a GPU), export .ply/.spz and show it with a Spark + three.js viewer checked headless.

- **Space:** 3d-and-splats-public (https://github.com/Tech-Realm/space-3d-and-splats-public/tree/main/splat-capture-to-web-viewer)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** VAST_API_KEY
- **Tools:** ffmpeg, python3, uv, pycolmap or COLMAP/GLOMAP, Brush or gsplat, playwright-python, network (jsdelivr CDN)
- **Routes:** mac-brush, homelab, vast-4090; checks: 3
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use 3d-and-splats-public/splat-capture-to-web-viewer` or MCP `get_pack 3d-and-splats-public/splat-capture-to-web-viewer`
- **Files:** CHANGELOG.md, code/check_splat_viewer.py, code/extract_frames.sh, code/make_fixture_ply.py, code/sfm.sh, code/splat_viewer.html, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Video to Gaussian splat to web page: extract sharp frames, solve camera poses (pycolmap/GLOMAP), train (Brush on Metal or gsplat/3DGS on a GPU), export .ply/.spz and show it with a Spark + three.js viewer checked headless.

## Goal

A splat of a real place or object that loads in a browser on desktop and phone.

## Steps

1. Capture: one continuous, slow, overlapping walk/orbit; locked exposure; no zoom. Drone + ground passes if the place is big.
2. Frames: `bash code/extract_frames.sh input.mp4 frames 3` (3 fps, skips near-duplicates by scene score).
3. Poses: `bash code/sfm.sh frames work` (pycolmap in a uv venv; sequential matching for video, exhaustive only for small unordered photo sets).
4. Train: on a Mac use Brush (Metal) ~7k steps for a preview; for quality use gsplat/3DGS 30k steps on a rented 4090 (see 3d-blender-animation/gpu-render-homelab-vast).
5. Export .ply (or compress to .spz) and view: `code/splat_viewer.html?src=scene.ply` through any static server.
6. Check: `python3 code/check_splat_viewer.py [scene.ply]` (synthetic fixture when no file given).

## Edge cases

- brew COLMAP can be broken (protobuf dylib mismatch); pycolmap in a uv venv works.
- Exhaustive matching on 110 frames took 20 min of a 24 min SfM; sequential matching is far faster for video.
- A splat only knows what a camera saw: drone-only footage gives blobs at walking height; a walk gives a corridor.
- Floaters near the camera path: clear them before export.
- Phone camera pages need HTTPS (use a Cloudflare tunnel URL).

## Don'ts

- Don't promise free movement beyond the captured paths; hold the viewer near the capture path (radius/yaw limits) instead.
- Don't use footage you have no rights to for anything published.
- Don't trust AI infill to invent large unseen areas faithfully (revisits drift ~15-16 dB).



---

Canonical URL: https://logicpacks.io/packs/3d-and-splats-public/splat-capture-to-web-viewer

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
