API

Class SPLATFileLoaderExperimental

SPLAT file type loader. This is a babylon scene loader plugin.

Implements

Index
extensions: any = SPLATFileLoaderMetadata.extensions

Defines the extensions the splat loader is able to load. force data to come in as an ArrayBuffer

name: any = SPLATFileLoaderMetadata.name

Defines the name of the plugin.

  • Experimental

    Imports 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) => void

      callback called while file is loading

    • Optional_fileName: string

      Defines the name of the file to load

    Returns Promise<ISceneLoaderAsyncResult>

    a promise containing the loaded meshes, particles, skeletons and animations

  • Experimental

    Load 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

  • Experimental

    Imports 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