Logo by reallybigname - 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 the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 20, 2024, 10:46:47 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: Halp! I can't implement Rudy Rucker's cubic mandelbrot correctly.  (Read 2015 times)
0 Members and 1 Guest are viewing this topic.
laser blaster
Iterator
*
Posts: 178


« on: May 05, 2014, 11:41:25 PM »

http://www.rudyrucker.com/blog/2010/04/02/the-rudy-set-fractal/

Hi, there. I'm trying to learn about higher-order mandelbrot-like sets (more than the simple multibrots), and Rudy Rucker has a good introduction to cubic Julia and Mandelbrot sets. I've succeeded at coding the kind of cubic fractal where the k parameter is a fixed constant, and the c parameter is set equal to the fixed position. I'm rendering the connectedness map using both critical points ( That is, i'm coloring black the points for which neither critical point escapes)

I noticed he made a mistake: the critical points are at +/- sqrt(k), not +/- k , but since I seem to be able to exactly mimic his results using the correct critical points for many pictures, I'm assuming it was just a typo and he actually implemented it correctly.

Now, when I get to what he calls the Rudy Set, I can't match his results. It looks like he is setting both the K and C parameters equal to the pixel position
He uses the notation :
    R = {c : Jcc is connected}
    = {c : c is in Mc}
    = {c : ( c-fcc– > FINITE ) AND ( -c –fcc– > FINITE) }     

I've tried implementing the formula as I understand it, and my results look different. I've tried using +/- sqrt(c) for the critical points, and also just +/- c (as his formula incorrectly suggests), and I get something totally different. I attached a picture (using the correct critical points).

Here is my fragmentarium code:
Code:
vec2 complexSqrt( vec2 a) {
vec2 ret;
float r = length(a);
ret = sqrt(r) * normalize (a + vec2(r,0.));
if( a.y==0) {
if(a.x < 0) a.x = -a.x;
else if (a.x == 0) ret = vec2(0.,0.);
}
return ret;
}

vec3 color(vec2 c) { // c is the pixel position
crit1 = complexSqrt(c);
crit2 = - crit1;

vec2 z = crit1;

int i = 0;
for (i = 0; i < Iterations; i++) {
z = complexMul(z,complexMul(z,z)) - 3. *  complexMul(c,z) + c;

if (dot(z,z)> 100.0) break;
}
vec2 z2 =crit2;
int j = 0;
for (j = 0; j < Iterations; j++) {
z2 = complexMul(z2,complexMul(z2,z2)) - 3. *  complexMul(c,z2) + c;

if (dot(z2,z2)> 100.0) break;
}
if (j< i) {z = z2; i = j;}


if (i < Iterations) {
. . . //perform coloring using i and z
}  else {
return vec3(0.0);
}


* Cubic Brot.png (172.92 KB, 422x402 - viewed 637 times.)
Logged
phtolo
Navigator
*****
Posts: 79



« Reply #1 on: May 06, 2014, 12:59:18 PM »

Take a look at http://formulas.ultrafractal.com/cgi/formuladb?browse

If you scroll down a bit you can find the ultrafractal files for Rucker's work.

Logged
laser blaster
Iterator
*
Posts: 178


« Reply #2 on: May 06, 2014, 10:12:33 PM »

Thanks, that helped a lot. Turns out the difference was that he was setting the position of the critical points equal to +/- pixel position, and then squaring it to get the K parameter for the formula. I was setting K equal to pixel position, and then taking the square root to get the critical points. I think both are equally valid approaches, but they produce different results.

By the way, I wonder why cubic and higher-order fractals haven't gotten much attention. Cubic connectedness maps (such as the one posted above) usually look messy and unkempt, but the sets drawn for only one of the two critical points (or the union of both such sets) can look gorgeous. You get the same elephant, scepter, spiral, and seahorse forms as in the Mandelbrot set, but with a distinctly cubic flair, plus you get plain old quadratic Mandelbrot sets embedded inside. I see a lot of potential for shape stacking.
« Last Edit: May 06, 2014, 10:15:11 PM by laser blaster » Logged
phtolo
Navigator
*****
Posts: 79



« Reply #3 on: May 07, 2014, 10:03:07 PM »

Wrote about a very simple variant a few months ago that aparently yields very similar results to Rucker's.

See the similarity between Detail of MandelCubicInvasionOfTheHrull and the picture below.

Use the standard m-set forumla but simply switch between using c from the m-set and a julia-set every other iteration.
On this image for the first three iterations I used c from a julia-set and the next three iterations I used c from the m-set, then repeat.

Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Rudy Sets and Mandelbrots of Higher Degree Mandelbrot & Julia Set Rudy 1 3191 Last post April 23, 2010, 10:54:57 PM
by stigomaster
QBIX - cubic Mandelbrot set deep zoom animation Movies Showcase (Rate My Movie) « 1 2 » HPDZ 16 4120 Last post June 04, 2010, 09:02:15 PM
by teamfresh
Images do not round-trip correctly UltraFractal Pauldelbrot 2 1152 Last post March 26, 2012, 02:29:59 AM
by Pauldelbrot
new reveales at Cubic Mandelbrot sets Mandelbrot & Julia Set hgjf2 2 2776 Last post February 02, 2014, 09:10:25 AM
by hgjf2
hidden treasures of cubic Mandelbrot Set variations fc(z)=z^3+z^2+c Mandelbrot & Julia Set hgjf2 0 7860 Last post October 28, 2017, 08:40:20 PM
by hgjf2

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