API

Function AddGaussianSplattingStreamPart

  • Experimental

    Adds a PlayCanvas-style SOG LOD stream as a part of a compound Gaussian Splatting mesh, so the streamed splats are depth-sorted and rendered in ONE pass together with the compound's other (static) parts.

    The returned mesh is a hidden controller: it streams SOG LOD files, GPU-decodes them into a reserved region of the compound's shared atlas, and drives which of its splats are active (LOD) — the compound owns the sort and the single instanced draw. The SOG up-axis orientation is applied to the reserved part's proxy transform; move/hide the part via the proxy (streamController exposes it once streaming has started).

    Parameters

    • compound: GaussianSplattingMesh

      the compound mesh to add the streamed part to

    • name: string

      name for the streaming controller / part

    • metadata: ISOGLODMetadata

      parsed lod-meta.json

    • rootUrl: string

      base URL the metadata's relative paths resolve against

    • options: IGaussianSplattingStreamOptions = {}

      streaming options

    Returns GaussianSplattingStream

    the streaming controller mesh (hidden; drives the reserved compound part)