Logo by mclarekin - Contribute your own Logo!
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. September 26, 2017, 11:48:20 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Iteration fog  (Read 723 times)
0 Members and 1 Guest are viewing this topic.
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« 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!
Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
Buddhi
Fractal Iambus
***
Posts: 885



WWW
« Reply #1 on: September 19, 2015, 06:21:12 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!

In general fog casts shadows and receives shadows. Opacity of fog depend on iteration count of fractal formula. More iterations gives higher opacity.
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.

Logged

3dickulus
Fractal Senior
******
Posts: 1555



WWW
« Reply #2 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 wink
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
First! (iteration) Philosophy oftakofta 1 2589 Last post December 19, 2009, 11:01:43 AM
by jehovajah
Iteration fog 2 Mandelbulber Gallery Buddhi 0 184 Last post February 12, 2012, 10:19:07 PM
by Buddhi
Iteration fog 1 Mandelbulber Gallery Buddhi 0 237 Last post February 12, 2012, 10:19:12 PM
by Buddhi
Buddha Slices (Drawing escape time at iteration n instead of iteration 0) Mandelbrot & Julia Set brainiac94 11 573 Last post November 04, 2016, 08:05:00 PM
by tit_toinou
Ascenseur pour l'itÚration (Elevator to the iteration) Film Bfractalien 0 295 Last post May 21, 2016, 11:51:38 PM
by Bfractalien

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.155 seconds with 28 queries. (Pretty URLs adds 0.01s, 2q)