huggingface / gsplat.js

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

Webgl for SplatData Transformations #59

Open TravisThomp opened 4 months ago

TravisThomp commented 4 months ago

Update SplatData to utilize fragment shader to calculate the matrix transforms, scales, and rotations. Currently CPU bound and slow :(

dylanebert commented 4 months ago

Noting here that object-level transformations are already applied in the vertex shader: https://github.com/huggingface/gsplat.js/blob/main/src/renderers/webgl/programs/RenderProgram.ts

However for per-point changes, yes, currently CPU-bound and could use improvement