Class SPLATFileLoaderExperimental
Implements
Constructors
constructor
-
ExperimentalCreates loader for gaussian splatting files
Parameters
- loadingOptions: Partial<Readonly<SPLATLoadingOptions>> = {}
options for loading and parsing splat and PLY files.
Returns SPLATFileLoader
- loadingOptions: Partial<Readonly<SPLATLoadingOptions>> = {}
Properties
Readonly Experimentalextensions
Defines the extensions the splat loader is able to load. force data to come in as an ArrayBuffer
Readonly Experimentalname
Defines the name of the plugin.
Methods
import Mesh Async
-
importMeshAsync(
meshesNames: any,
scene: Scene,
data: any,
rootUrl: string,
_onProgress?: (event: ISceneLoaderProgressEvent) => void,
_fileName?: string,
): Promise<ISceneLoaderAsyncResult>ExperimentalImports from the loaded gaussian splatting data and adds them to the scene
Parameters
- meshesNames: any
a string or array of strings of the mesh names that should be loaded from the file
- scene: Scene
the scene the meshes should be added to
- data: any
the gaussian splatting data to load
- rootUrl: string
root url to load from
Optional_onProgress: (event: ISceneLoaderProgressEvent) => voidcallback called while file is loading
Optional_fileName: stringDefines the name of the file to load
Returns Promise<ISceneLoaderAsyncResult>
a promise containing the loaded meshes, particles, skeletons and animations
- meshesNames: any
load Asset Container Async
-
ExperimentalLoad into an asset container.
Parameters
- scene: Scene
The scene to load into
- data: string
The data to import
- rootUrl: string
The root url for scene and resources
Returns Promise<AssetContainer>
The loaded asset container
- scene: Scene
load Async
-
ExperimentalImports all objects from the loaded OBJ data and adds them to the scene
Parameters
- scene: Scene
the scene the objects should be added to
- data: string
the OBJ data to load
- rootUrl: string
root url to load from
Returns Promise<void>
a promise which completes when objects have been loaded to the scene
- scene: Scene
SPLAT file type loader. This is a babylon scene loader plugin.