Lens Scripting API
    Preparing search index...

    Class GaussianSplattingAsset

    Asset that contains Gaussian Splats. Used with GaussianSplattingVisual.

    Hierarchy (View Summary)

    • Asset
      • GaussianSplattingAsset
    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    uniqueIdentifier: string

    Methods

    • The number of frames in the asset (in case of GSAF)

      Returns number

    • Returns the colors of all splats as an interleaved Float32Array (r, g, b, a for each splat).

      Returns Float32Array

    • The number of splats in the asset. For GSAF, it's the total number of splats across all frames.

      Returns number

    • Returns the 3D positions of all splats as an interleaved Float32Array (x, y, z for each splat).

      Returns Float32Array

    • Returns the rotations of all splats as an interleaved Float32Array of quaternions (w, x, y, z for each splat).

      Returns Float32Array

    • Returns the 3D scale values of all splats as an interleaved Float32Array (x, y, z for each splat).

      Returns Float32Array

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Sets the colors of all splats from an interleaved Float32Array (r, g, b, a for each splat).

      Parameters

      • rgbaArray: Float32Array

      Returns void

    • Sets the 3D positions of all splats from an interleaved Float32Array (x, y, z for each splat).

      Parameters

      • vec3Array: Float32Array

      Returns void

    • Sets the rotations of all splats from an interleaved Float32Array of quaternions (w, x, y, z for each splat).

      Parameters

      • quatsWxyzArray: Float32Array

      Returns void

    • Sets the 3D scale values of all splats from an interleaved Float32Array (x, y, z for each splat).

      Parameters

      • vec3Array: Float32Array

      Returns void