http://regedit.gamedev.pl/ Graphics programming, game programming, C++, games, Windows, Internet and more... |
| Main Page | Blog | Productions | Gallery | Download | Links | About me |
19:40
Sun
20
Dec 2009
I Render Fractal Flames
Continuing my learning/research of fractals, today I've finally managed to render something that looks like Fractal Flame. AFAIK the most important paper on this subject is The Fractal Flame Algorithm by Scott Draves and Erik Reckase. According to this document, I've first added to my program the ability to use colors, so each point, as it has the position iteratively processed by some functions, also carries current color. Now I am able to render colourful IFS fractals:
Implementing logarithmic tone mapping and gamma correction significantly improved quality. Colors can help visualising internal structure of a fractal:
Next I've coded (almost) all functions mentioned in this paper, so now not only affine transforms are possible in my program. This allows me to mix traditional fractals with new functionality:
And finally to render something that looks like famous Fractal Flames. But it's not easy to achieve this. Modifying numeric parameters in a text file is not convenient, and even if I had an editor with real-time preview, it's not obvious what parameters give what results and whether they will degenerate to something like a single point. There are simply too many degrees of freedom :) If we had a continuous function Beauty(Params), we could use some optimization algorithms to find and render its local extrema :) Anyway, here are my first renders (more in Fractal Flames Gallery).
Comments (5) | Tags: graphics programming math fractals
| KermiDT 2009-12-21 07:31:36 | Is there any way you could render a movie with such a fractal? I'm wondering if it can be used to prepare some nice animated textures. |
| Tomasz Dħbrowski 2009-12-21 22:02:09 | Fractal_Flame/Clipboard-5.png is a real beauty, what would you say about 1680x1050 version with more of these? :) |
| Reg 2009-12-22 17:50:46 | I suppose I'll do both videos and hi-res renders as I improve my code further. If only I won't loose my passion for that topic :) |
| Mike 2010-01-07 18:33:06 | http://www.subblue.com/projects/mandelbulb |
| Philippe Da Silva 2010-01-14 02:36:54 | Hi, great work. I'm currently starting to investigate on fractal flames rendering for my space game (very useful for nebulae rendering ;)). Unfortunatelly, there are way less code examples available on the web than for Perlin Noise or other noise/fractal algorithms... Would you share your code for a matter of understanding the how's? ;) Thanks Philippe Da Silva philippe dot dasilva at me dot com |
| [Stat] [Admin] [STAT NO AD] [pub] [Mirror] | Copyright © 2004-2010 Adam Sawicki | 0.02 s |