Title: Iteration fog Post by: Patryk Kizny on September 18, 2015, 06:28:48 PM Hey,
Can someone give me some more technical details on how the iteration fog algorithm works? Would love to implement it as an extension to the DE raytracer I use now in Fragmentarium. Thanks! Title: Re: Iteration fog Post by: Buddhi on September 19, 2015, 06:21:12 PM Hey, In general fog casts shadows and receives shadows. Opacity of fog depend on iteration count of fractal formula. More iterations gives higher opacity.Can someone give me some more technical details on how the iteration fog algorithm works? Would love to implement it as an extension to the DE raytracer I use now in Fragmentarium. Thanks! For every ray marching step it calculates lights and shadows. But ray-marching has to be done in opposite direction than for calculating fractal surface. It must be from fractal to camera. If you need more details you can look into source code: https://github.com/buddhi1980/mandelbulber2/blob/master/mandelbulber2/src/shaders.cpp#L417 If you have more questions just ask. Title: Re: Iteration fog Post by: 3dickulus on September 19, 2015, 08:13:24 PM if you... grep fog Fragmentarium/Examples/*/* you will find about 80 instances of the word "fog" mostly in the raytracer.frags ;) |