Hacker News new | ask | show | jobs
by AceJohnny2 43 days ago
About cloud rendering: In 2008 a college friend wrote his thesis on real-time realistic rendering of clouds: https://maverick.inria.fr/Publications/2008/BN08b/

You can see screenshots of that work in his thesis defense slides https://theses.hal.science/tel-00319974/file/defense.pdf

That's where I learned about the transference phase function (slide 24), which includes two spikes on the return angle that correspond to the relatively unknown Glory rainbow: https://en.wikipedia.org/wiki/Glory_(optical_phenomenon)

I don't know if this method is what is used in video games today.

Incidentally, you may recognize his advisor Fabrice Neyret as someone very active in the Shadertoy community https://www.shadertoy.com/user/FabriceNeyret2

1 comments

Thanks for the pointer! It seems like my approach is similar to, but much more simplified than, what is described in the slides (the thesis itself is not loading for me right now). I'm using a 4D function (LUT) rather than 5D. The correspondences are: size/thickness (of a sphere, not a slab), lighting angle, view angle. I additionally use the surface normal, they use viewpoint depth and scattering order.

The observation of different behaviours for different scattering orders is interesting. I could try adding a cheap approximate first-order term to the shader to get more pronounced silver linings.

My LUT is calculated using the Henyey-Greenstein phase function, so without the backward spikes. Since this is all computed offline, I could easily add the more accurate Mie function.

What is used in games today is more raycast-based, e.g. Nubis³: https://www.guerrilla-games.com/read/nubis-cubed

And Neyret's name is well known to me, yes :)