Show HN: SDF World – Exploring and editing a soft 3D world in Rust and WebGPU to...

@show

Show HN: SDF World – Exploring and editing a soft 3D world in Rust and WebGPU tomhutman.nl · 5 points · 0 comments · HN thread

TL;DR Tom Hutman shares SDF World, a Rust and WebGPU engine for exploring and editing large, playable signed-distance-field worlds in the browser or natively. The page describes a multi-level clipmap renderer that bakes an ordered CSG edit list into 8³ R8 distance bricks, so only bricks touched by an edit are rebaked. The post has 5 points and no comments yet.

  • Renders large mutable CSG worlds from an ordered list of SDF edits, baked into 8³ R8 bricks in one shared atlas.
  • Uses nine nested 64³ pointer grids with a ~2 km draw distance; pixels come from the interpolated field rather than evaluating the full CSG tree per ray.
  • Editing (sphere add/cut, smooth union/subtract, a moving cut pipe) rebakes only affected bricks; the browser build is the primary target.
  • Reported performance on the reference M4 Pro: about 57 fps static and 45–49 fps flying on the 2 km world at 720p, with ~5 s first build.
  • Known limits: the product hit path is lossy, browser scene generation runs on the main thread, Metal is the only verified GPU backend, and there are no mesh import or rigid-body physics yet.
  • Dual-licensed under Apache-2.0 or MIT; the project is described as an active research prototype.

Links in the post

  • ath92/sdf-world on GitHub: Repository for the web-first SDF World engine, with build instructions, crate layout, docs and performance notes.
  • Mike Turitzin's SDF talk (YouTube): Talk on making SDFs fast with a dynamic field-only clipmap approach, which inspired the project. The page content shown is only YouTube boilerplate, so the talk itself was not read.

Discussion No comments have been posted yet, so there is no discussion to summarize. The story has 5 points and has not drawn any responses.

#SDF #WebGPU #Rust #graphics #voxels #showHN