# 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

- **Space:** threejs-public (https://github.com/Tech-Realm/space-threejs-public/tree/main/splat-viewer)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, playwright-python, chromium
- **Routes:** static-local; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use threejs-public/splat-viewer` or MCP `get_pack threejs-public/splat-viewer`
- **Files:** CHANGELOG.md, code/boot.js, code/index.html, code/main.js, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/threejs-public/splat-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).
