
👀 What's that?? 🤯 A new devlog about my village building game! 😅 It only took me 7 months 👇 Link below

I teach C++ & computer graphics and make games. Working on a village building game: t.ly/onQIw Check out my cozy traffic sim: t.ly/bu8Ib He/him

👀 What's that?? 🤯 A new devlog about my village building game! 😅 It only took me 7 months 👇 Link below

I contacted my legal representative and was regrettably informed that my sanity is non-refundable

Do I want to make a WebGPU procedural planet renderer or do I want my sanity back

I'm releasing my in-browser Volumetric Cloud Path Tracer! ➤ Uses WebGPU ➤ Fast preview mode via raymarching ➤ Slow progressive path tracing mode via delta tracking ➤ PNG&HDR export ➤ Loads of settings to play with ➤ Can upload custom 3d data Enjoy! lisyarus.github.io/webgpu/cl…

Here's a preview image because apparently loading a preview from url meta tags is too hard for twitter devs

C'mon twitter, load the preview image :(

One of the small but hugely important bits: adding a lovely sun glow 🥰 Now you can simulate a cloud orbiting in the solar corona 😅

New render with the default settings. 100k samples per pixel, took ~15 minutes to finish :) Just a few finishing touches and I'll probably release this tomorow. It's all just (mostly) readable JS & WGSL, so it's open-source by design :)

Yay, exporting HDR works! Turns out I mixed up different 4-byte formats: I thought Radiance HDR uses RGB9E5, but it's actually RGB8E8

First test converting & exporting HDR images from my cloud path tracer. Not exactly correct, but close 😅

Saving a PNG works! Had to render a temporary LDR texture (canvas-backed texture might lack COPY_SRC flag), copy to a temp buffer, read the mapped buffer on CPU, then save it using JS built-in PNG converter via a temporary canvas 🤣 Planning to also add HDR export.

Interesting that it looks like some obvious compute dispatch artefacts...

Implementing "save as png" feature for my cloud path tracer and, well, not sure whether chrome implements it correctly 😅 Might have to resort to manual unpacking to a webgpu buffer

I had a bug when zero absorption & scattering would make emission disappear as well (an artefact of delta tracking algorithm). Fixed by using a separate integration code in this case, but it would be better to split the integral and estimate emission & in-scattering separately


Settled on a different UI for scattering coefficients: transmission color (how much light passes through), and scattering albedo (of the light that doesn't pass through, how much is scattered vs absorbed). Still not always obvious, but seems intuitive enough