WebGPU Gaussian splatting with Radix and Three.js

If you already have a Gaussian splat and want to put it on a web page, start with a renderer and a known-good scene. Radix is a Three.js library for drawing splats through WebGPU or a WebGL2 backend. Its introductory example loads a butterfly from an RDX file. Open that example on your target device before bringing in your own capture. Run the official Radix examples.

What does the browser draw?

A Gaussian splat has a position and a footprint with an orientation and extent. As the camera moves, the renderer projects those footprints into the image and combines their color and opacity. A fine detail such as a leaf can look convincing along the original capture path even if it falls apart when you move behind it. The original research includes scene comparisons from novel camera positions. See the Gaussian Splatting research and examples.

Three elliptical color footprints shown apart and overlapping
Illustration of projected splat footprints. Each fades toward its edge, so several can contribute color to the same pixel.

Get one scene rendering before swapping assets

  1. Serve the Radix getting-started HTML over HTTP or HTTPS. Keep its import map and example asset together for the first run.
  2. Trace the data through loadSplats, SplatCollection and SplatRenderer. Check the network response for the asset if you see an empty canvas.
  3. Replace the butterfly with a splat in a format supported by your loader. A PLY extension alone tells you little about its attributes. Keep a copy of the original scene to isolate import errors.

Separate rendering problems from capture gaps

If the sample and your own scene both disappear on one device, inspect browser errors and the graphics backend first. If only your capture disappears, check the camera position, scene scale and asset request. If it renders but one wall dissolves as you turn, compare that angle with the input photos before changing renderer settings.

For a performance comparison, record the device, backend, canvas resolution and scene file. Repeat the same camera movement after loading completes. Initial download time and frame time answer different questions. The photo capture and PLY guide covers the preceding step.

If your web scene also needs a mesh asset, start with front and side photos of that object.

Create a 3D model from photos
← More 3d tools & research