Exports the GaussianSplatsPrimitive geometries of a SceneModel to the compact .splat format (baked RGB, no SH).

Like every other format exporter it reads a SceneModel through the ModelExporter base, so splats export as "just another model":

const fileData = await new GaussianSplatExporter().write({ sceneModel });
// fileData is an ArrayBuffer of .splat bytes

Round-trips with GaussianSplatLoader: a .splat loaded and then re-exported reproduces the original scene (positions to within the SceneGeometry's 16-bit position quantisation; scales, colours and rotations exactly).

All GaussianSplatsPrimitive geometries in the model are concatenated into one .splat buffer. Non-splat geometry (triangles, lines, points) is ignored.

Hierarchy (View Summary)

Constructors

Properties

defaultVersion: string

The default supported schema version.

encoders: { [key: string]: ModelEncoder }

An encoder for each supported schema version.

fileDataType: string

Data type of the file written by this Exporter.

format: string

The exported model file format.

versions: string[]

List of supported schema versions.

Methods