NamelessFractals

Here I experiment with various rendering techniques!


Project maintained by NamelessCoding Hosted on GitHub Pages — Theme by mattgraham

Fractal path tracing #2

Implementation details:

So with this one I’m doing the BRDFs a bit different, I heard from someone that lerping the brdfs together is a proper way to combine multiple BRDFs together and it’s supposedly also energy conserving, which is very important.

New sky and clouds using Rayleigh and Mie scattering:

So I recently tried a more physically realistic model of the sky, as opposed to the preetham sky algorithm I implemented a while ago. This time I’m using Rayleigh scattering for the sky and the formula is taken from here https://en.wikipedia.org/wiki/Mie_scattering, which is surprising since this is an article about Mie scattering and it has rayleigh approximation formula. Either way, for the clouds I applied some mie scattering and after messing around a bit, I managed to create some good looking clouds and sky: Octocat Octocat

Water rendering and beer’s law:

For the water rendering I’m doing two things, one is to set the material as mostly reflective, so that the ray will bounce off it and add reflections and I’m also refracting the ray and marching it against a second SDF without the water and only the fractal. I’m recalculating the brdf for the new point and also multiplying the values by beer’s law:

exp(-depth*depthMultiplier)

I’m doing this to emulate out-scattering and absorption in the participating media. Results can be seen below:

Octocat Octocat Octocat Octocat

back