←
Nikita Lisitsa39,414 posts
Nikita Lisitsa avatar

Nikita Lisitsa

@lisyarus

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

◷ Joined May 2012▧ 3,660 Photos and videos
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Aug 8

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 16

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

Nikita Lisitsa avatar
⟳ Nikita Lisitsa retweeted
Nikita Lisitsa@lisyarus·Nov 12

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…

Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 12

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 12

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

0:48
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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 :)

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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.

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 11

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

Post attachment
Nikita Lisitsa avatar
Nikita Lisitsa@lisyarus·Nov 10

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

0:54