Gaussian Splatting File Loader Plugin
Babylon.js supports multiple Gaussian splatting file formats:
- .PLY
- .Splat
- .compressed.PLY
- Niantic .SPZ
- .SOG/SOGS Self-Organizing Gaussian https://github.com/fraunhoferhhi/Self-Organizing-Gaussians
- Streamed SOG (
lod-meta.json) for very large scenes - glTF files using the
KHR_gaussian_splattingextension (with the glTF loader)
Loader options, supported variants (compressed and half-float PLY, SPZ v4) and streaming are described in the Gaussian Splatting page.
To use it, you just have to reference it after Babylon.js:
<script src="Babylon.js"></script><script src="babylon.splatFileLoader.js"></script>If you want to import splat files statically (not recommended), you can do so via:
import "@babylonjs/loaders/SPLAT/splatFileLoader";You can read more about NPM support.