Download

Using Gaussian Splatting

Import Gaussian Splatting assets (.splat, .spz, .sog) into your project, manipulate them in the scene, and enable runtime loading support.

Introduction

Gaussian Splatting is a volume-rendering method. It's useful for capturing real-life data. You can find more information about Gaussian Splatting support in Babylon.js here.

Importing Gaussian Splatting assets

The Babylon.js Editor supports Gaussian Splatting assets. You can import them in your project and use them in your scene. The Editor will automatically create a Gaussian Splatting instance. You can then manipulate them in the scene and change their properties in the Inspector. You can also add scripts to them.

Supported formats are:

Supporting Gaussian Splatting in your app

By default, Gaussian Splatting support is NOT included when you import the Babylon.js Editor tools. For tree-shaking purposes, you need to explicitly import the Gaussian Splatting support in your app. You can do this by adding the following line in your code:

typescript
import "babylonjs-editor-tools/loading/gaussian-splatting";

And then you can load your scene(s) that contain Gaussian Splatting assets. The loader will automatically create the Gaussian Splatting instances in your scene. Here is an example of the code to load a scene with Gaussian Splatting support:

typescript
import { loadScene } from "babylonjs-editor-tools";

import "babylonjs-editor-tools/loading/gaussian-splatting";

// ...

await loadScene("/scene/", "my-scene.babylon", scene, scriptsMap, {
    quality: "high",
});