Settings

Theme

Show HN: Real-time path tracing of medical CT volumes in the browser via WebGPU

grenzwert.net

2 points by MickGorobets 4 hours ago · 1 comment

Reader

MickGorobetsOP 4 hours ago

I built a GPU path tracer for volumetric medical data that runs entirely in Chrome via WebGPU + WebAssembly (C++/Emscripten).

Key technical details: – Delta tracking (Woodcock null-collision algorithm) for unbiased volume rendering

– Cook-Torrance GGX BRDF + Henyey-Greenstein phase function

– MacroGrid acceleration (DDA empty-space skipping + GPU tile culling)

– Progressive frame accumulation — noisy at first, converges to ground truth

– HDR pipeline: bloom, auto-exposure, PBR Neutral / ACES tone mapping

– Async mip-level streaming with gzip decompression

Built on Diligent Engine — I contributed to its WebGPU backend a few years ago.

Requirements: Chrome (WebGPU enabled). Other browsers don't fully support WebGPU yet. Works best on discrete GPU but runs on integrated as well.

Happy to answer any questions about the rendering pipeline or WebGPU!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection