Bitbybit Docs
    Preparing search index...

    Class BabylonGaussianSplatting

    Gaussian splatting scenes, captured real-world environments stored as clouds of soft colored blobs in .ply files, loaded into the scene as meshes that can be moved, cloned and shadowed like any other.

    Index

    Constructors

    create

    get

    multiply

    Constructors

    create

    • Loads a Gaussian splatting .ply file from a URL into the scene as a mesh that casts and receives shadows; nothing is loaded without a URL.

      Parameters

      Returns Promise<GaussianSplattingMesh>

      The splatting mesh

      const splat = await bitbybit.babylon.gaussianSplatting.create({ url: "https://example.com/scans/room.ply" });
      

    get

    • Reads the center point of every splat in a Gaussian splatting mesh, in its own coordinates; the engine stores four numbers per splat and only the first three are the point. An unloaded mesh gives an empty list.

      Parameters

      Returns Point3[]

      One point per splat

      const centers = bitbybit.babylon.gaussianSplatting.getSplatPositions({ babylonMesh: splat });
      

    multiply

    • Makes a copy of a Gaussian splatting mesh that shares its splat data, so the same capture can appear at several places cheaply.

      Parameters

      Returns GaussianSplattingMeshBase

      The copy

      const copy = bitbybit.babylon.gaussianSplatting.clone({ babylonMesh: splat });
      bitbybit.babylon.mesh.setPosition({ babylonMesh: copy, position: [10, 0, 0] });