huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 77 forks source link

Add 4dgs support #78

Closed dylanebert closed 3 months ago

dylanebert commented 3 months ago

4D Gaussian Splatting is now supported using Spacetime Gaussian Feature Splatting with the .splatv format from antimatter15/splaTV.

Example usage:

const renderer = new SPLAT.WebGLRenderer();
renderer.addProgram(new SPLAT.VideoRenderProgram(renderer));

const scene = new SPLAT.Scene();
const camera = new SPLAT.Camera();
const controls = new SPLAT.OrbitControls(camera, canvas);

const url = "https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/4d/flame/flame.splatv";
await SPLAT.SplatvLoader.LoadAsync(url, scene, camera, null);

A working example can also be found in examples/4d.