Skip to content

Packs / threejs-public

splat-viewer

Show a Gaussian-splat capture (.ply/.splat/.spz) in a three.js page with Spark, next to normal meshes, with a loading state

Install

logicpacks pack use threejs-public/splat-viewer
get_pack threejs-public/splat-viewer

The 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)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: static-local
  • Checks: 1 in outcome/checks.yaml
  • Code: boot.jsindex.htmlmain.js
  • Tools: python3, playwright-python, chromium

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A web viewer for splat captures (from the 3d-and-splats space) that mixes splats with three.js meshes and controls.

Steps

  1. Capture/convert the splat in 3d-and-splats; compress to .spz for the web.
  2. Copy code/, pass ?splat=url.spz.
  3. Without a splat the template shows a procedural point cloud so the page still proves the pipeline.
  4. Check: python3 ../tools/webgl_check.py code --js "window.__splat.ready".

Edge cases

  • Splats are heavy: 300k+ splats need a decent phone GPU; offer a lower-count version.
  • Sorting cost grows with count; keep the camera from flying inside the cloud.

Don'ts

  • Don't ship private captures (homes, people) on public pages without consent.
  • Don't hotlink our home servers for splat files.