logoalt Hacker News

bitbonsai • today at 11:20 AM • 3 replies • view on HN

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

Nice demos, indeed.


Replies

whizzter • today at 11:43 AM

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 • today at 12:13 PM

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.

Woshiwuja • today at 11:24 AM

[dead]