SDK JS
    Preparing search index...

    Interface SpzGaussianCloud

    A decoded SPZ gaussian-splat cloud as flat, parallel Float32Arrays (struct-of-arrays, one entry per splat), ready to upload to a splat renderer. Returned by SpzDecoder.decode.

    Positions are in the file's own local frame (SPZ stores meters). Counts below are element counts (floats), not bytes: a cloud of numPoints splats.

    interface SpzGaussianCloud {
        alphas: Float32Array;
        colors: Float32Array;
        numPoints: number;
        positions: Float32Array;
        rotations: Float32Array;
        scales: Float32Array;
        sh: Float32Array;
        shDegree: number;
    }
    Index

    Properties

    alphas: Float32Array

    numPoints floats — per-splat opacity LOGITS (pre-sigmoid; ±Infinity occurs in real captures). Apply 1/(1+exp(-a)) to get alpha in [0,1].

    colors: Float32Array

    3·numPoints floats — DC (band-0) RGB colour.

    numPoints: number

    Splat count.

    positions: Float32Array

    3·numPoints floats — splat centers (x,y,z) in the file's local meters.

    rotations: Float32Array

    4·numPoints floats — orientation quaternions (x,y,z,w).

    scales: Float32Array

    3·numPoints floats — per-axis log-scales (exp to get the gaussian's metric extent).

    numPoints · coeffs(shDegree) floats — higher-order SH rest coefficients (view-dependent colour). Empty when shDegree === 0.

    shDegree: number

    Spherical-harmonics degree present (0 = DC colour only, no view-dependence).