Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing Flame Fractals [closed]

Tags:

fractals

I am looking for information on how to draw flame fractals from googling around I could not find much, either pages explain how to use third party tools or way too complicated for me to grasp. Anyone know how/why they work? or point me in the direction of not overly complicated implementations?

like image 881
Hamza Yerlikaya Avatar asked Jul 12 '09 12:07

Hamza Yerlikaya


3 Answers

I have written a beamer presentation that covers the basics in flame fractals:

https://www.math.upenn.edu/~peal/files/Fractals[2009]Beamer[Eng]-PAXINUM.pdf

All images are done from my java implementation of the flame algorithm.

The source code can be found here:

http://sourceforge.net/projects/flamethyst/

I believe that the pdf http://flam3.com/flame_draves.pdf together with the implementation in java above should get you a long way.

like image 79
Per Alexandersson Avatar answered Oct 21 '22 22:10

Per Alexandersson


You could read the original paper by Scott Draves, which details precisely how and why they work, as well as a guide to an implementation in pseudocode.

As long as you have some basic knowledge of maths, it should be relatively straightforward to understand (though it is rather long!). To be honest, you can probably ignore much of it and just read about the code, since much of the text is background info.

like image 32
Noldorin Avatar answered Oct 21 '22 21:10

Noldorin


Fractal flames are basically a variant of an iterated function system (IFS). You have a series of functions through which you pass a single point over and over again. Each function is a combination of an affine transformation and one or more variations.

Each iteration, only one function is chosen (at random), and the resulting point is accumulated into a buffer and used as the starting point of the next iteration.

The buffer is then saved as an image, after having been post-processed and filtered, as described in the flame paper.

The best reference is still the original implementation, flam3.

like image 3
Algorias Avatar answered Oct 21 '22 23:10

Algorias