Engine API Reference - v2.24.0-beta.33
    Preparing search index...

    Class GSplatResource

    A Gaussian splat resource that stores uncompressed splat data. Created when loading uncompressed PLY files and glTF files with the KHR_gaussian_splatting extension, and for compressed PLY or SOG files whose asset data sets decompress to true.

    Hierarchy (View Summary)

    Index
    _centers: Float32Array<ArrayBufferLike> | null
    • get antiAlias(): boolean

      Gets whether the splats were trained with anti-aliasing.

      Returns boolean

    • set antiAlias(value: boolean): void

      Sets whether the splats were trained with anti-aliasing (a screen-space filter with opacity compensation, as in Mip-Splatting), which they need to be rendered with to look right. Loaded resources set this from the file, when it records the training mode: the antialiased 1 or SplatRenderMode: mip PLY header comment, the model field of a SOG file, or the anti-aliased flag of an SPZ file. Set it for files that do not record the training mode. Used when GSplatParams#antiAlias is undefined, its default. Defaults to false.

      Parameters

      • value: boolean

      Returns void

    • set centers(value: Float32Array<ArrayBufferLike> | null): void

      CPU-side splat center positions (xyz per splat), or null when not built for this resource.

      Parameters

      Returns void

    • get extras(): any

      Application-defined data stored with the splat file, as in glTF's extras: the extras value of a SOG's meta.json. The engine attaches no meaning to it. Undefined when the file has none, and for formats that cannot carry it.

      Returns any