Logo by jwm-art - 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: Visit us on facebook
 
*
Welcome, Guest. Please login or register. March 28, 2024, 05:55:23 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: complex compound /w new coloring z^2 looks like a 3d Mandelbrot. "Wolf, Wolf!!"  (Read 1999 times)
0 Members and 1 Guest are viewing this topic.
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« on: July 16, 2010, 06:01:09 AM »

  This new coloring method (calculating 1 more iteration past max iteration, then using the magnitude of all values to assign color) really makes some interesting patterns, especially for good old z^2!  Using an additional iteration in other fractal types will probably be equally as awesome.  Anyways...

Code for calculating fractal (which is also used to calculate the color) is posted after images (although it is a totally standard 3d bulb, although it is the faster complex triplex variety (instead of trig)).

seahorse valley:

elephant valley

1 more iteration:

17 iteration deep zoom into above 8 or 9 iteration image:

zoom on top part:

side view straight on:

side view top down:


  Anyways, here is the code (from another thread).  It's simply the Mandelbulb formula I prefer due to its simplicity, the fact that it's faster than the trig versions, and the it is an obvious extension of complex numbers.

Code:
r1=sqrt(sqr(sy)+sqr(sz));
r3=r1^(-n);   // take it to the -n so you don't have to divide by r3, as it can equal zero for the first iteration

victor=complex(sx,r1);
bravo=complex(sy,sz);  
victor=victor^n;    // for higher powers, set up a script if n= integer powers for each n so
bravo=bravo^n;   //  for  n=4   bravo^4 = sqr(sqr(bravo))     ||   for n=6 bravo^6 = sqr(bravo)*sqr(sqr(bravo))

nx=real(victor);
ny=imag(victor)*real(bravo)*r3;  // since r3=r1^-n you don't have to divide here.. good if r3=0
nz=imag(victor)*imag(bravo)*r3;

if (juliaMode) {
sx=nx+cr;
sy=ny+ci;
sz=nz+cj;
} else {
sx=nx+(pixelr);
sy=ny+(pixeli);  // take the abs(pixeli) for a more uniform fractal, although the distortion of the even n
sz=nz+(pixelj); //  z^2,4,6....  is to be expected considering the asymmetry of the 2d set for even n
}
z=quaternion(sx,sy,sz,0);  //this feeds information to ChaosPro's orbital color scheme
                                            // it sends the x, y, and z values to the coloring calculation which simply repeats the above
  // calculation one (or more) time
bail=abs(sx)+abs(sy)+abs(sz);

« Last Edit: July 16, 2010, 08:03:25 AM by M Benesi » Logged

jehovajah
Global Moderator
Fractal Senior
******
Posts: 2749


May a trochoid in the void bring you peace


WWW
« Reply #1 on: July 16, 2010, 08:32:36 AM »

Fantastic Matt! I knew you had colour in you as well as pattern and rhythm Repeating Zooming Self-Silimilar Thumb Up, by Craig
Logged

May a trochoid of ¥h¶h iteratively entrain your Logos Response transforming into iridescent fractals of orgasmic delight and joy, with kindness, peace and gratitude at all scales within your experience. I beg of you to enrich others as you have been enriched, in vorticose pulsations of extravagance!
ker2x
Fractal Molossus
**
Posts: 795


WWW
« Reply #2 on: July 16, 2010, 10:28:49 AM »

anyone willing to try on a 2D mandelbrot ? I'm curious smiley
(i'm at work right now, can't do it  sad )
Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
kram1032
Fractal Senior
******
Posts: 1863


« Reply #3 on: July 16, 2010, 11:43:38 AM »

that looks nice cheesy
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #4 on: July 16, 2010, 02:42:08 PM »

Congratulation, it should solve the question, how
to color the surface of the Mandelbulb.

Very good work.

 
Logged
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #5 on: July 16, 2010, 07:41:44 PM »

Sheesh all,

  I just realized using the regular orbit formula (no additional iterations) does the same thing... basically.  hahaha.

   Anyways, it does look nice.  cheesy

  Here are some regular orbit (by that I mean same number of iterations as formula) averaged orbital magnitude (averaged x, y and z components individually, so for 10 iterations took all 10 x components and divided them by 10, same with y and z components; then calculated magnitude of averaged x, y, and z components.  note: instead of this, we could calculate orbital magnitude each iteration and then average that).

all z^2:

zoomed and iterated one more time:

zoomed and iterated a few more times (a couple zooms):
« Last Edit: July 16, 2010, 11:16:32 PM by M Benesi » Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #6 on: July 17, 2010, 09:37:02 PM »

Another 2 z^2 (next one in 10 minutes or so). z^2 are really awesome looking... just like in the 2d set.




« Last Edit: July 17, 2010, 10:09:50 PM by M Benesi » Logged

jehovajah
Global Moderator
Fractal Senior
******
Posts: 2749


May a trochoid in the void bring you peace


WWW
« Reply #7 on: July 22, 2010, 06:06:30 AM »

So Matt the colour algorithm is new but the specification is simpler. I would like to see what happens when you iterate to a z^2 mandlebulb with mini mandelbulbs along the axis. This certainly brings out the details. grin
Logged

May a trochoid of ¥h¶h iteratively entrain your Logos Response transforming into iridescent fractals of orgasmic delight and joy, with kindness, peace and gratitude at all scales within your experience. I beg of you to enrich others as you have been enriched, in vorticose pulsations of extravagance!
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #8 on: July 22, 2010, 08:29:36 AM »

  Not entirely sure what you mean Jehovajah? 
Logged

Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
"Modular" complex arithmetic (new) Theories & Research « 1 2 » stigomaster 20 2161 Last post March 30, 2010, 02:45:18 PM
by kram1032
DE calculation for "compound" fractals ? 3D Fractal Generation David Makin 10 3085 Last post July 20, 2010, 05:44:07 PM
by matsoljare
TedTalk : "Benoit Mandelbrot: Fractals and the art of roughness " Fractal News across the World ker2x 0 3212 Last post July 07, 2010, 01:56:09 PM
by ker2x
"Analysis of a Complex Kind" course General Discussion slon_ru 0 1419 Last post July 11, 2013, 02:01:57 AM
by slon_ru
A "forgotten" theorem about complex numbers (new) Theories & Research hgjf2 3 534 Last post July 22, 2013, 04:24:32 PM
by kram1032

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