Logo by bib - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. April 25, 2024, 12:53:43 AM


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: Skull Head fractal  (Read 998 times)
Description: Description of a fractal I made, looks like a skull head
0 Members and 1 Guest are viewing this topic.
marmakoide
Forums Newbie
*
Posts: 1


« on: March 21, 2016, 10:49:18 AM »

Hi,

 I was fumbling around, trying to understand how the Mandelbox works, and I came-up with this


It does not have as much as interesting details as the Mandelbox (some areas are just boring variations on Cantor dust), but it still interesting enough to explore


I made a small gallery here : http://imgur.com/a/T6z1i

Pseudo-code to generate the fractal is here
Code:
MAX_ITER_COUNT = 15 
SCALE_FACTOR = 2.5
SHIFT_FACTOR = .5

bool
get_sample(vec2 c) {
    float S = 1. / 6.;

    vec2 U = (c / length(c));
    mat2 M = SCALE_FACTOR * mat2(vec2(U.x, U.y), vec2(-U.y, U.x));
    vec2 T = SHIFT_FACTOR * c;

    vec2 z = c;
    for(int iter_count = 0; iter_count < MAX_ITER_COUNT; ++iter_count) {
        // Inner hole
        if (length(z) < S)
            return true;

        // Fold to a 1/3 square
        z = clamp(z, -S, S) * 2. - z;

        // Scale-up to unit square
        z = M * z + T;
    }

    return false;
}

The [-3,3] square contains the whole fractal. To render the pictures I show here, I used 4x4 supersampling. The fractal itself is a variation on this
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #1 on: March 21, 2016, 11:40:01 AM »

nice, indeed the mandelbox contains a lot of other fractal types, cantor dust obviously, sierpinsky triangles can be found, and a various other clearly identifiable sets

the location for these is in the corners of the box
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Gilgamesh Head, the 3D mandelbulb like fractal 3D Fractal Generation Alef 9 8250 Last post January 07, 2012, 03:51:50 PM
by Alef
Fractal head Images Showcase (Rate My Fractal) stereoman 0 603 Last post April 27, 2012, 12:36:07 PM
by stereoman
Pythagorean Fractal Skull Images Showcase (Rate My Fractal) tit_toinou 0 1904 Last post April 29, 2012, 08:37:20 PM
by tit_toinou
fractal head Images Showcase (Rate My Fractal) thom 1 907 Last post December 04, 2012, 08:16:54 PM
by thom
The Skull Resemblance hapf 0 701 Last post May 22, 2014, 10:34:38 AM
by hapf

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.156 seconds with 24 queries. (Pretty URLs adds 0.005s, 2q)