Gaussian Splatting From Zero · Episode 21
Large Scenes & Streaming
Large Scenes & Streaming is Episode 21 of Gaussian Splatting From Zero, a MasterAllArts free interactive lesson for artists learning creative 3D on the web.
Part of the MasterAllArts Creative 3D Roadmap .
A room is a few million splats. A city block is a few billion — far more than any GPU can hold, let alone any phone can download. Rendering scenes that don't fit in memory is its own discipline, and the answer is the same one games have used forever: tiles and level-of-detail. Chop the world into chunks, and for each chunk load only as much detail as its distance from the camera justifies. The demo flies over a splat "city" — near tiles render at full detail, far ones drop to coarse, and the farthest are culled entirely. Watch the budget hold steady as you orbit.
The core idea: spend detail where the camera is
You already met this twice — streaming over time (Episode 16) and LOD over distance (also 16). At city scale it becomes structural: the scene is permanently a tree of tiles, and the renderer's whole job each frame is deciding, per tile, "how much of you do I load and draw right now?"
- Near tiles — full splat count, every detail.
- Mid tiles — a coarse subset (Episode 16's stride trick), or a pre-merged lower-detail version of the tile.
- Far tiles — culled completely; not in memory, not drawn, not downloaded.
Drag LOD bias down and watch the drawn-splat count plummet while the city still reads fine from a distance — that gap between "looks the same" and "costs a fraction" is the entire win.
LOD trees: octrees and 3D Tiles
Real systems don't use a flat grid; they use a hierarchy. An octree (or the OGC 3D Tiles standard, used for geospatial splats) stores the scene at many resolutions: the root is the whole city as a blurry blob, its children are quadrants at more detail, and so on down to full-resolution leaves. The renderer walks the tree from the root and stops descending into a branch as soon as its detail is good enough for its on-screen size:
// traverse the LOD tree; refine only what the screen needs
function draw(node) {
const err = screenSpaceError(node, camera); // how blurry would this look?
if (err < threshold || node.isLeaf) {
render(node.splats); // good enough — stop here
} else {
stream(node.children); // fetch finer detail…
for (const c of node.children) draw(c); // …and recurse
}
}
This is how viewers fly through entire cities and planets: only the handful of tiles near the camera ever reach full resolution; the rest stay as cheap, blurry ancestors. Spark 2.0's LOD system and Cesium-style 3D Tiles both work this way.
Streaming the tree over the network
- Fetch by need. Download a tile only when the traversal decides to refine into it, and prioritize by screen-space error — the biggest, blurriest thing on screen loads first.
- Cache & evict. Keep recently-seen tiles; drop ones you've flown away from to bound memory. The working set is "tiles near the camera," not "the whole city."
- Predict. Pre-fetch tiles in the direction of travel so you're not staring at blur after every turn.
- Coarse first. Always have the ancestor loaded, so a not-yet-streamed tile shows its blurry parent instead of a hole (Episode 16's lesson, structurally).
Common pitfalls
- Pop when crossing LOD boundaries. Detail jumps visibly. Cross-fade between levels, or blend a tile's two adjacent LODs near the switch distance.
- Hitches while streaming. Decoding a tile blocks the frame. Decode on a worker and add tiles incrementally (Episode 16).
- Memory creep. No eviction — you keep every tile you ever saw. Bound the cache.
- Sort across tiles. Transparent splats still need a global order; per-tile sorting plus a coarse tile-level sort is the usual compromise.
Exercises
- Set LOD bias to its minimum and orbit: the far city is coarse but the silhouette holds, at a fraction of the splats. That's your real frame budget.
- Turn on "show tiles" and watch a tile's color step green→yellow→red→gray as you orbit away from it. Each step is a detail level you didn't have to pay for.
- Imagine the grid was an octree: the red "coarse" tiles would just be a parent node's blurry splats, not a subset of the leaf. Same effect, less memory.
What's next
Episode 22 — SLAM & Live Splatting. So far the scene existed before we rendered it. Next it's built as the camera moves — real-time reconstruction, where the splat map grows and sharpens live wherever the sensor has looked.