Decoder options; see SpzGltfSplatDecoderOptions.
Decode one .glb gaussian-splat tile to a flat splat cloud.
The .glb tile bytes (may be gzip-framed, e.g. Esri spz_2).
The decoded GltfSplatCloud (parallel Float32Arrays in the tile's
glb-local frame, plus the column-major 4×4 nodeMatrix).
If the wasm fails to initialize (see WasmHostInit), or if glb
is not a valid SPZ-compressed gaussian-splat tile — the wasm decode rejects.
Decodes a whole 3D-Tiles
.glbgaussian-splat tile — one whoseKHR_gaussian_splattingbuffer is…_compression_spz_2(Esri/Cesium) — via theturbospzwasm.Remarks
Implements the codec-agnostic
GltfSplatDecoderseam from@bitruvius/geo-core, so@bitruvius/tiles3dcan stream Esri/Cesium splat tilesets without depending on this package directly: you inject an instance and the engine drivesdecode(glb)per tile. For off-main-thread decode use WorkerSpzGltfSplatDecoder (same contract). The wasm is a lazily-initialized singleton shared across instances.Example