Using Sprite Manager
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.
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:
- .splat: JavaScript typed-array serialized version of .PLY data
- .spz: Niantic Labs SPZ format
- .sog: Self-Organizing Gaussian format
Importing Gaussian Splatting assets
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 purpose, you need to explicitely import the Gaussian Splatting support in your app. You can do this by adding the following line in your code:
typescript
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