hn.today

Show HN: Radix - A WebGPU-powered 3D Gaussian Splat renderer built on Three.js

sparkjs.dev11 points0 comments
Screenshot of Show HN: Radix - A WebGPU-powered 3D Gaussian Splat renderer built on Three.js

Radix is a JavaScript library for rendering 3D Gaussian splats with Three.js. It stores splat data in typed-array tables on the CPU and GPU, and draws them through Three.js’s WebGPURenderer. Rendering uses WebGPU when available and falls back to the renderer’s WebGL2 backend otherwise. The site demonstrates a minimal setup: create a renderer, load a splat file, place it in a collection, add a SplatRenderer to a Three.js scene, and animate the result. Its starter example loads and rotates a butterfly model.

The package, @sparkjsdev/radix, can be installed from npm or imported from a CDN alongside Three.js 0.186; the CDN setup maps Three.js’s main, WebGPU, TSL, and addons modules. Worker code is bundled, so no separate worker file needs serving. TypeScript projects require version 5.7 or newer, with @webgpu/types needed for WebGPU declarations in older TypeScript versions. The repository includes build and local-serving commands, example and test pages, documentation, API references, recipes, and source code. Its examples cover splat viewing, scenes, WebXR, games, fractals, and ports of SparkJS examples, with notes on which ports are complete, partial, or blocked.

Read on sparkjs.dev0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.