21 points ricardobeat 2 days ago 6 comments

bitbonsai 1 hour ago | parent

The Handkerchiefs demo is pretty sweet. How could you do that light/flare through the windows?

Nice demos, indeed.

whizzter 1 hour ago | parent

If it's shadowmap based lighting you can trace through it.

Imagine a ray from the camera to the background pixel, sample the shadowmap along the way if the sample points along the camera ray lies within the shadowmap and add light if the shadowmap depth is further away (simplified, depending on number of lights,etc there's a number of possible optimizations but that should be googleable).

worried_individ 40 minutes ago | parent

light through the window looks like standard volumetric rendering, a custom lens flare effect, and some (not sure if physically accurate) blooming of image values beyond the dynamic range in this scene.

pixelpoet 1 hour ago | parent

Typo in the headline, PBD stands for Position Based Dynamics.

whizzter 42 minutes ago | parent

The article literally links a paper on XPBD, apparently some kind of extension of PBD with better behaviours (unless the headline has changed?).

https://matthias-research.github.io/pages/publications/XPBD....

portroyal 41 minutes ago | parent

FYI: this article drops a hotlink[1] which leads to pinball[2]; it's fun.

1: https://simonbw.com/pinball-performance-2/

2: https://pinball.simonbw.com/