> ## Documentation Index
> Fetch the complete documentation index at: https://docs.splat-3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How the Splat3D pipeline works

> From upload to interactive 3D scene — what each stage does and how long it takes.

# How the Splat3D pipeline works

When you upload a video or photo set, Splat3D runs it through a sequence
of stages that turn pixels into a 3D scene you can fly through. This
guide gives you enough context to predict runtimes and pick the right
[quality tier](https://docs.splat-3d.com/guides/presets.md) for your workload.

## At a glance

```
Upload (video or photos)
   │
   ▼
1. Frame extraction
2. Structure-from-Motion       (find where each photo was taken)
3. Gaussian Splat training     (build the scene)
4. Cluster cleanup
5. Compression for the web
6. LOD generation              (optional)
   │
   ▼
Scene is ready to view + share
```

## Stage 1 — Frame extraction

For video, frames are sampled at roughly 1.5 frames per second and
capped at 800 frames (`MAX_FRAMES` in `pipeline/training/frame_extract.py`).
Blurry frames are filtered out.

For photo zips, up to 400 images are extracted (`MAX_PHOTOS`; a bigger set
is thinned evenly) and EXIF orientation is applied so portrait photos render
right-side-up. If the zip holds a COLMAP model (`images/` plus
`sparse/<model>/`), the SfM stage is skipped and we go straight to
training. Such a zip is not thinned: over 800 registered images, the scene
fails (`MAX_REGISTERED_IMAGES` in `pipeline/colmap/prebuilt.py`). ARKit poses don't skip it: GLOMAP still runs, and the poses set
which way is up (see [Supported inputs](https://docs.splat-3d.com/guides/supported-inputs.md#arkit-capture)).

Runtime: seconds.

## Stage 2 — Structure-from-Motion

Splat3D figures out where each photo was taken from (camera poses)
and produces a sparse 3D point cloud that anchors the next stage.
Without accurate poses, training cannot produce a useful scene.

The flow:

1. Detect distinctive keypoints in each image.
2. Match keypoints between images. For photo zips and video of up
   to 200 frames, match every pair. For longer video, match each frame
   to its temporal neighbors.
3. Solve a global optimization that places every camera and every
   3D point such that the math is consistent across all observations.

Runtime: 4–10 minutes depending on image count. Photo zips with
many images take longer because matching is exhaustive (cost grows
with the square of the image count).

## Stage 3 — Gaussian Splat training

Now that we know where every camera is, we fit the scene
representation: a few million 3D Gaussians, each with position,
size, color, and opacity. Training is iterative:

1. Render the current Gaussians from a known camera angle.
2. Compare the result to the actual photo from that angle.
3. Update the Gaussians to reduce the difference.
4. Periodically split, clone, or remove Gaussians.
5. Repeat for thousands of iterations.

The resolution scales with the quality tier. Every tier trains
30,000 steps by default; `training.iterations` sets 1,000 to 50,000
on any of them (see [training parameters](https://docs.splat-3d.com/guides/training-parameters.md#training-iterations)):

| Preset | Steps | Image budget | Whole pipeline |
| - | - | - | - |
| `fast` | 30K | 800 px | \~8 min |
| `standard` | 30K | 1600 px | \~15 min |
| `quality` | 30K | 1600 px | \~25 min |
| `ultra` | 30K | full-res | \~45 min |

The times cover every stage, `/process` to ready, and are approximate: they
depend on video length, the number of frames and GPU availability
(`TIER_TABLE` in `packages/core/src/tiers.ts`).

Higher tiers fit finer detail and more reflective surfaces but
cost more credits. Start at Standard and move up if you need
sharper results.

> [!NOTE]
>
> Need higher resolution, larger captures, or a custom training
> configuration for archival or research work? Email
> [hello@splat-3d.com](mailto:hello@splat-3d.com) and tell us about your
> use case.

## Stage 4 — Cluster cleanup

Trained scenes can have detached "floater" Gaussians — distant
artifacts disconnected from the main subject. Splat3D analyzes
the scene topology and records the result alongside the model
so the viewer can hide or prune floaters.

By default this is advisory, not destructive — the analysis is
attached to the scene but no Gaussians are removed automatically.

Runtime: seconds.

## Stage 5 — Compression for the web

Trained models (PLY files) range from tens of megabytes to several
gigabytes depending on tier and scene complexity. That's too large
to load instantly in a web viewer, so Splat3D compresses the model to
a SOG file (1–10 MB) with negligible quality loss.

The viewer always loads the SOG. The original PLY remains available
as a direct download for users who want the raw training output.

Runtime: \~30 seconds.

## Stage 6 — LOD generation (optional)

For very large scenes, Splat3D can build a level-of-detail structure
that streams the scene in chunks based on camera distance, keeping
the framerate steady on huge models.

Disabled by default; opt in per scene.

## Practical takeaways

* **Photo uploads scale quadratically** with image count due to
  exhaustive matching, so a zip keeps at most 400 photos (a bigger set
  is thinned evenly). Send 400 or fewer to choose which ones are used.
* **Video uploads are capped at 800 sampled frames** — there is no
  benefit to uploading hour-long videos.
* **Quality tier picks the speed/fidelity trade-off.** All tiers run
  the same SfM stage; they differ in resolution, GPU and total
  runtime. See [quality presets](https://docs.splat-3d.com/guides/presets.md) for the
  recommended tier per use case.

## Further reading

* [SfM backends](https://docs.splat-3d.com/guides/sfm-backends.md) — override the matcher and other
  SfM options on a per-scene basis.
* [Training parameters](https://docs.splat-3d.com/guides/training-parameters.md) — knobs on the
  training stage.
* [Output formats](https://docs.splat-3d.com/guides/output-formats.md) — what files come out of the
  pipeline and how to use each one.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.