Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] [Matrix1Utils] Fractal flame generator with AA and gamma correction

Author
Message
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 10th Sep 2010 21:57
This code can be modified to generate almost any kind of fractal flame. At the moment it is set up with the four functions described here to generate a fern fractal.

The result has 2x antialiasing and gamma correction applied, and the brightness and gamma can be varied in realtime.

The number of fractal functions is specified with the constant F_N, and the functions themselves are named V0, V1, etc.

The 'p' value of each function specifies the probabilty that the function will be used in a particular iteration.



Enjoy

[b]
sneaky smith12
17
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 12th Oct 2010 17:08
Very nice! By the title of the screen I was hoping for a flame

If at first you dont succeed, LOWER YOUR STANDARDS.
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 12th Oct 2010 18:26
He may have intended the subject to be Fractal Fern.

Either way, it's quite impressive and realistic looking. It would make some great textures for a forest scene.

Login to post a reply

Server time is: 2024-03-29 06:15:27
Your offset time is: 2024-03-29 06:15:27