Taos API Reference
    Preparing search index...

    Module splats

    The 3D Gaussian-splatting subsystem: loads splat scenes (.ply / .spz, or a picked/dropped source), the GPU radix sort, and the render pass that preprocesses + draws them. Imported via the taos/splats subpath, e.g. import { GaussianSplatPass } from 'taos/splats';.

    Classes - Render Graph

    GaussianSplatPass

    Abstract base class for a render graph pass.

    Classes - Splats

    GaussianSplatTileset
    GeoSplatFeature

    Classes - Other

    GpuRadixSort

    Interfaces - Splats

    SplatTileNode

    A node in a splat tileset tree.

    SplatTilesetView

    Per-frame camera view for LOD + culling.

    GaussianSplatTilesetOptions

    Interfaces - Other

    GaussianSplatDeps
    GaussianSplatOutputs
    GltfSplatContent

    Decoded glTF splat content: the splats plus the node's local transform (mat4, column-major).

    RadixSortOptions
    SplatCamera

    One training camera pose from a 3DGS cameras.json (world / splat space).

    ResolvedSource
    SplatData

    A decoded Gaussian splat cloud in renderer-ready form. The two typed arrays are uploaded verbatim to GPU storage buffers.

    Variables

    SPLAT_GEOM_U32

    u32 words per splat in the geometry buffer.

    SPLAT_GEOM_STRIDE

    Bytes per splat in the geometry buffer.

    SH_COEFFS

    Spherical-harmonic coefficients stored per splat (degree 3 = 16).

    SPLAT_SH_U32

    u32 words per splat in the SH buffer (16 coeffs × 3 channels × f16 / 2).

    Functions

    loadGaussianSplatGlb

    Decode a glTF Gaussian-splat .glb (e.g. a Cesium 3D-Tiles splat tile) into SplatData + the splat node's transform.

    transformSplatData

    Bake a column-major mat4 m into a SplatData in place: transforms each splat's position, rotates its orientation quaternion by m's rotation, and scales its size by m's scale. Use to place a decoded splat cloud at a world location/orientation (the GaussianSplatPass has no per-cloud model matrix). Assumes m is a similarity transform (rotation + uniform-ish scale + translation), which Cesium splat node + ENU placement matrices are.

    pickDirectory

    Prompt the user for a directory and resolve the best splat file inside it.

    resolveDrop

    Resolve a dropped DataTransferItem (file or directory) to a splat source.

    loadSplatData

    Load a resolved file into SplatData, dispatching by extension.

    loadPly

    Parse a 3DGS .ply from a File/Blob, streaming the body. onProgress receives a 0..1 fraction as splats are decoded.

    shCoeffCount

    ((deg + 1)^2) — number of SH coefficients for a given band.

    sigmoid

    Logistic sigmoid, matching the activation 3DGS applies to stored opacity.

    floatToHalf

    Convert a JS number to its IEEE-754 half-precision (f16) bit pattern.

    packHalf2

    Pack two f16 values into one u32 (low half = a), matching WGSL pack2x16float.

    loadSpz

    Parse a .spz file. onProgress reports a 0..1 fraction (the gzip inflate happens up front as a single step, then per-splat unpacking streams the fraction toward 1).