Sooo… yeah, another one. This one is more research than game though, I promise.
Ive been poking at splats on and off for a while now (some of you might remember my GaussianSplattingMaterial questions from earlier this year) and I kept wondering how the newer papers actually stack up against regular 3DGS. Reading the papers is one thing, but I wanted to see them all side by side in BJS… and then I wanted to train them… and then the training needed to not be slow… So here we are.
Introducing Splat Lab!
**→ Have a play:** Splat Lab
Basically you give it something (a mesh, a splat file, a point cloud, or a sculpt written in a little SDF language I threw in there) and it turns it into four different kinds of primitives you can flip between:
* **3DGS** — the baseline, drawn with BJS’s own GaussianSplattingMesh
* **Points** — Gaussian point splatting, using the new WebGPU point splatting mode in Babylon 9
* **Triangle** — triangle splatting / Triangle Splatting+
* **Convex** — 3D convex splatting
The untrained versions look rough… thats on purpose, its the starting point the papers optimize from. The fun part is the Train button. It renders a bunch of views of a dense “teacher” version of your source and then optimizes whatever tab you are on against them, with a differentiable rasterizer written from scratch in WGSL compute. All in the browser, nothing leaves your machine, and no build step.
The triangle one is probably my favorite. With the opaque finish on it anneals the triangles until they are fully solid, and then they just draw as a plain old depth tested mesh. No sorting, no blending. Plus it comes out looking kinda painterly which is a fun side effect.
Now the numbers… This is `tests/bench.html` on my 5080 at the default settings (3,000 steps, 256², 64 teacher views):
| | Primitives | Steps/s | Full run |
|—|—|—|—|
| Gaussians | 200k | 137 | ~22 s |
| Triangles | 120k | 280 | ~11 s |
| Convexes | 60k | 77 | ~39 s |
Thats 3-5x faster than the first version (35 / 53 / 25 steps/s). Two fixes did most of that… the sort size never comes back to the CPU anymore (indirect dispatch), and the backward pass now sums its gradients in workgroup memory before writing them out. Before that every warp was just sitting there waiting on 9-17 global compare-exchange round trips per primitive… oof.
Anyways the technical breakdown, Im gonna let claude take the wheel on this part:
-–
### How the training works
* Every source becomes the same set of oriented elements (position, three axes, three radii, color, opacity), and each tab converts those into its own primitive. That’s what the untrained view shows.
* Tile-based differentiable rasterizer in WGSL compute: project → tile counts → prefix sum → key duplication → 4-bit LSD radix sort → per-tile front-to-back compositing.
* Analytic backward pass chained to the 3D parameters: Gaussian mean / scale / rotation, triangle corners, all six convex points, colors and opacities. Adam, a 0.8 L1 + 0.2 L2 loss, and MCMC-style relocation of dead primitives every 250 steps.
* Gradients are checked against central finite differences (`tests/gradcheck.html`): 69/72 Gaussian, 64/66 triangle and 73/84 convex parameters agree within 10%. The misses come from discontinuities: tile edges, opacity cutoffs, points crossing the convex hull.
* The triangle and convex display shaders recompute exactly the same screen-space window as the trainer, so what you trained is what you see.
### BJS + WebGPU things learned the hard way
* On the WebGPU engine, write custom `ShaderMaterial`s in WGSL (`ShaderStore.ShadersStoreWGSL`, `shaderLanguage: WGSL`). Creating *any* GLSL material makes Babylon fetch glslang/twgsl from the CDN, which breaks under a strict CSP.
* Babylon multiplies clip-space y by `yFactor`, so in a WGSL fragment `fragmentInputs.position.xy` is already bottom-up like `gl_FragCoord`. Flipping it again collapsed every triangle into a line.
* Babylon wraps your WGSL `main`, so don’t `return` early from a vertex `main`; use a flag instead.
* If you time GPU work in Chrome, `onSubmittedWorkDone()` and `mapAsync` resolve on polling ticks (2.5–12 ms here), so wall-clock timing of a single pass mostly measures the polling. Timestamp queries give the real numbers.
### Papers
* 3D Gaussian Splatting — Kerbl et al., SIGGRAPH 2023
* Gaussian point splatting — Rijsdijk et al., ACM TOG 2026
* Triangle Splatting / Triangle Splatting+ — Held et al., 2025
* 3D Convex Splatting — Held et al., CVPR 2025
### Where it stands
Research playground, not a production renderer. Color is view-independent (no spherical harmonics yet), there’s no D-SSIM term in the loss, and it has only been benchmarked on one GPU.
-–
That last part is where you all come in! If you have a minute, open Splat Lab benchmark on whatever you have… AMD, Apple, integrated, a potato… and post the numbers here. Id really like to see how it holds up outside of NVIDIA land.
Next on the list is SH for view dependent color, D-SSIM, and exporting the trained results (.ply/.splat for the Gaussians and .glb for the opaque triangles).
Check it out and mess with it when you get a chance! Would love to hear what you think.




