Welcome to Fractal Forums

Fractal Software => Programming => Topic started by: willvarfar on October 07, 2012, 04:02:36 PM




Title: global illumination (article)
Post by: willvarfar on October 07, 2012, 04:02:36 PM
http://www.iquilezles.org/www/articles/simplepathtracing/simplepathtracing.htm


Title: Re: global illumination (article)
Post by: eiffie on October 09, 2012, 04:49:21 PM
Thanks for posting. I hadn't checked to see what IQ was up to for a while and now I have a lesson from the master!

I put the code in the article together and made a Fragmentarium script out of it. (see attached)
I tried to keep it as simple as possible so others can add to it.


Title: Re: global illumination (article)
Post by: Kali on November 15, 2012, 06:56:21 PM
Excelent, thanks for sharing!


Title: Re: global illumination (article)
Post by: richardrosenman on November 22, 2012, 09:55:25 PM
Hi eiffie;

Thank you for posting this code! It's awesome!

Is it tough to extend this to the Mandelbulb or other fractals? I played around with it but removing any single object seems to break down most of the script.

-Rich


Title: Re: global illumination (article)
Post by: eiffie on November 24, 2012, 06:00:02 PM
Hi Rich I should have posted a link here to another thread where I have updated the code...
http://www.fractalforums.com/fragmentarium/inigo-quilez's-brute-force-global-illumination/ (http://www.fractalforums.com/fragmentarium/inigo-quilez's-brute-force-global-illumination/)

The last code posted shows a bit better how to add fractals. Actually it has a bulb now as a LIGHT!

I am still puttering with it so expect at least one more update. I think it can be made faster.


Title: Re: global illumination (article)
Post by: tryptophan on April 05, 2013, 08:38:30 PM
I am stoked to check this out thanks for sharing.


Title: Re: global illumination (article)
Post by: eiffie on April 06, 2013, 05:28:14 PM
If you are looking at my code make sure you check the code in the thread mentioned above.
There are a couple of obvious areas for improvement - I didn't handle shadows of reflective objects correctly and the shadows are colored?!?!?
I also didn't use Schlick's approx for determining diffuse vs spec lighting although I remember adding a fake in one version.

I also made an unbiased version (that doesn't cheat toward finding light). It handles fractal lighting well but unfortunately takes FOREVER!