Packs / 3d-and-splats-public
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.
Install
logicpacks pack use 3d-and-splats-public/splat-capture-to-web-viewerget_pack 3d-and-splats-public/splat-capture-to-web-viewerThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
- VAST_API_KEY
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
mac-brushhomelabvast-4090 - Checks: 3 in
outcome/checks.yaml - Code:
check_splat_viewer.pyextract_frames.shmake_fixture_ply.pysfm.shsplat_viewer.html - Tools: ffmpeg, python3, uv, pycolmap or COLMAP/GLOMAP, Brush or gsplat, playwright-python, network (jsdelivr CDN)
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from 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
- Capture: one continuous, slow, overlapping walk/orbit; locked exposure; no zoom. Drone + ground passes if the place is big.
- Frames:
bash code/extract_frames.sh input.mp4 frames 3(3 fps, skips near-duplicates by scene score). - Poses:
bash code/sfm.sh frames work(pycolmap in a uv venv; sequential matching for video, exhaustive only for small unordered photo sets). - 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).
- Export .ply (or compress to .spz) and view:
code/splat_viewer.html?src=scene.plythrough any static server. - 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).