import * as BABYLON from "@babylonjs/core"; import type { Context } from "../../context"; import type * as Inputs from "../../inputs"; /** * 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. */ export declare class BabylonGaussianSplatting { private readonly context; constructor(context: Context); /** * 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. * @param inputs - The URL of the file * @returns The splatting mesh * @group create * @shortname gaussian splatting mesh * @disposableOutput true * @example * ```typescript * const splat = await bitbybit.babylon.gaussianSplatting.create({ url: "https://example.com/scans/room.ply" }); * ``` */ create(inputs: Inputs.BabylonGaussianSplatting.CreateGaussianSplattingMeshDto): Promise; /** * Makes a copy of a Gaussian splatting mesh that shares its splat data, so the same capture can * appear at several places cheaply. * @param inputs - The splatting mesh to copy * @returns The copy * @group multiply * @shortname clone splat * @disposableOutput true * @example * ```typescript * const copy = bitbybit.babylon.gaussianSplatting.clone({ babylonMesh: splat }); * bitbybit.babylon.mesh.setPosition({ babylonMesh: copy, position: [10, 0, 0] }); * ``` */ clone(inputs: Inputs.BabylonGaussianSplatting.GaussianSplattingMeshDto): BABYLON.GaussianSplattingMeshBase; /** * 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. * @param inputs - The splatting mesh * @returns One point per splat * @group get * @shortname get splat positions * @drawable true * @example * ```typescript * const centers = bitbybit.babylon.gaussianSplatting.getSplatPositions({ babylonMesh: splat }); * ``` */ getSplatPositions(inputs: Inputs.BabylonGaussianSplatting.GaussianSplattingMeshDto): Inputs.Base.Point3[]; private enableShadows; }