Skip to main content

Streamed SOG

Streamed SOG enables efficient rendering of large Gaussian splat scenes by dynamically loading appropriate levels of detail (LOD) based on the camera's distance. This dramatically reduces memory usage and improves rendering performance for large-scale splat scenes.

How It Works

Streamed SOG works by:

  1. Pre-generating multiple versions of your splat at different detail levels
  2. Organizing them into a spatial tree structure for efficient streaming
  3. Dynamically loading and unloading detail levels based on camera distance
  4. Rendering only the appropriate level of detail for each region of the scene

This approach allows you to render massive splat scenes that would otherwise be impossible due to memory constraints.

Creating Streamed SOG Data

To use Streamed SOG, you need to generate the format — a lod-meta.json spatial tree structure that organizes multiple levels of detail for efficient streaming (see the Streamed SOG Format Specification). There are two ways to obtain the LOD levels:

  • Provide your own LOD levels — supply multiple splat files at progressively lower detail (LOD 0 = highest detail, higher numbers = lower detail), for example produced during training or exported separately.
  • Generate them with SplatTransform — use SplatTransform to decimate a single high-quality splat into lower-detail levels, so you don't have to author them yourself.

Once you have the LOD levels, SplatTransform bundles them into the Streamed SOG format. See the Generating Streamed SOG section in the SplatTransform documentation for detailed instructions.

Live Examples

Explore these live examples to see Streamed SOG in action:

  • Streamed SOG (Basic) - Demonstrates basic streaming with different detail levels
Streamed SOG (Basic)
  • Streamed SOG with Spherical Harmonics - Shows streaming with spherical harmonic data
Streamed SOG with Spherical Harmonics

Enabling Streamed SOG

Streaming is enabled simply by loading a Streamed SOG asset (lod-meta.json) onto a GSplat component — no additional configuration is required.

Controlling LOD Behavior

You can control and fine-tune streaming behavior using the following APIs:

Component-Level Control

Use lodBaseDistance and lodMultiplier to control LOD distance thresholds. Thresholds follow a geometric progression: lodBaseDistance * lodMultiplier^i:

entity.gsplat.lodBaseDistance = 10; // distance for the first LOD transition
entity.gsplat.lodMultiplier = 2; // each successive threshold is 2x farther

The multiplier defaults to 3 (and is clamped to a minimum of 1.2) — each LOD transition happens at three times the previous distance. The system also compensates for camera FOV automatically.

Scene-Level Control

The Scene.gsplat property provides access to scene-wide settings for gsplat rendering. This includes options for:

  • Performance tuning parameters
  • Debug visualization settings
  • Memory management controls
  • Stream loading behavior
// Access scene-level gsplat settings
const gsplatSettings = app.scene.gsplat;

// Configure settings as needed
// (See API documentation for available properties)

The most important scene-level setting for Streamed SOG is the global splat budget, which automatically balances detail across all GSplat assets to hit a target splat count. See Global Splat Budget in the Performance section for details.

Using Streamed SOG in the Editor

Native support for Streamed SOG in the PlayCanvas Editor will be added in the near future. In the meantime, you can use the Engine API in scripts to enable Streamed SOG functionality in your Editor projects.

Sample Project

We've created a sample project that demonstrates how to use Streamed SOG with Gaussian splats in the PlayCanvas Editor:

Church of Saints Peter and Paul

This project showcases a large-scale Gaussian splat scene with Streamed SOG, including custom reveal shader effects.

Using the Streamed GSplat Script

The sample project includes a streamed-gsplat.mjs script that can be added to any Entity to enable Streamed SOG:

Setup Steps

  1. Add the script to an Entity in your scene
  2. Configure the splatUrl property to point to an externally hosted Streamed SOG file
External Hosting

Currently, the Streamed SOG data needs to be hosted externally (not as an Editor asset). This limitation will be removed in the future when native Editor support for Streamed SOG is added.

Quality Settings

The streamed-gsplat.mjs script provides four different quality/performance presets, allowing you to specify:

  • Which LOD levels to load
  • At what distances each LOD level should be displayed

These settings enable fine-tuned control over the balance between visual quality and rendering performance, making it easy to optimize for different target platforms and devices.

Custom Shader Effects

The sample project also demonstrates how to create custom shader effects for Gaussian splats. It includes scripts from the PlayCanvas Engine GSplat Scripts repository.

Specifically, the project uses the Reveal Radial shader effect (along with its base class) to create an animated reveal of the splat scene. This effect:

  • Creates radial waves emanating from a center point
  • First shows small colored dots progressively
  • Then lifts particles up with a highlight effect before settling to their original state

This demonstrates the flexibility of the PlayCanvas Engine's shader system for creating compelling visual effects with Gaussian splats.

Future Editor Improvements

As native Editor support for Streamed SOG is added, the following improvements are planned:

  • Direct Asset Import: Upload Streamed SOG files directly as Editor assets (no external hosting needed)
  • Visual Configuration: Configure LOD settings through the Editor UI instead of script properties
  • Preview in Editor: View and test streaming behavior directly in the Editor viewport

Benefits

  • Better Performance: Streamed SOG reduces memory usage and improves rendering performance for large scenes
  • Scalability: Enables rendering of much larger Gaussian splat scenes by dynamically loading appropriate detail levels
  • Flexibility: Provides fine-grained control over LOD distances and streaming behavior
  • Optimized Loading: Only loads the data needed for the current view

See Also