A fast, lightweight, and incredibly responsive Web-based 3D Gaussian Splat viewer built on top of the modern SparkJS 2 framework and Three.js. Designed for seamless accessibility, this viewer provides an out-of-the-box solution for rendering massive splat environments natively in your browser, complete with full WebXR (VR) support.
- Universal Format Support: Drag-and-drop support for
.spz,.rad,.plyand PlayCanvas compressed.sogsplat formats directly into the browser. - Dynamic LOD Streaming: Generates hierarchical Levels of Detail (LODs) on-the-fly for massive environments utilizing Web Workers and memory
Blob URLsfor instant hot-swapping without re-importing. - Native WebXR Integration: Full VR support with head-relative locomotion. Click "Enter VR" to fly through scenes using your controllers. (Left thumbstick to move, Right thumbstick to turn, A/B buttons for vertical altitude).
- Real-time UI Overlays: Tweak your Global LOD Quality, Mesh Detail bounds, and Model Scale in real-time. Includes a built-in FPS monitor for performance tuning.
- First-Person Flycam: A togglable "First Person Mode" that converts the default Three.js Orbit Controls into a classic WASD flycam. Use the mouse scroll wheel to natively push back and forward along your view ray.
- Instant Auto-Loading: Pre-configure and instantly boot the viewer into any environment via URL queries.
- Example:
https://<your-username>.github.io/SimpleSparkViewer/?splat=https://domain.com/splat.spz&lodgen=true&flip=true - Parameters: ?splat=url &lodgen=true|false &flip=true|false &loddetail=, and &lodquality=
- Example:
To run this application locally on your machine:
- Clone the repository.
- Run
npm installto grab the necessary dependencies. - Run
npm run devto start a local Vite server.
This project is configured out-of-the-box to deploy to GitHub Pages. Simply push your changes to your main branch, and GitHub Actions will automatically handle the build and deployment process. Ensure that GitHub Pages is enabled in your repository's Settings > Pages and set the source to GitHub Actions.
https://killiancartelier.fr/splatviewer/
This project is based on Spark by sparkjsdev, used under the MIT License.
VR Headset by jeremy [CC-BY] via Poly Pizza