News: Support us via Flattr FLATTR Link

## The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Mandelbox Julia with Spirals
Previous Image | Next Image
Description:  // Mandelbox Julia with fold at 0.5, scale = 1 and without y transformation.
// CenterX=5.50297045220822 CenterY=0.583399182382745
public override bool GetBool(double x, double y, double z)
{
for (int i = 0;i < 77;  i++)
{
while(Math.Abs(x)>0.5)
{
while(x>0.5)  x =  1-x;
while(x<-0.5) x = -1-x;
}
while(Math.Abs(z)>0.5)
{
while(z>0.5)  z =  1-z;
while(z<-0.5) z = -1-z;
}
double r=x*x+y*y+z*z;
if(r>0)
{
x /= r;
y /= r;
z /= r;
if(r<0.3) return false;
}
y=-y;
x+= 0.02;
y+= 1.9;
z+= 0.5;
}
return true;
}

Stats:
Total Favorities: 0 View Who Favorited
Filesize: 248.26kB
Height: 1159 Width: 1200
Discussion Topic: View Topic
Keywords: Mandelbox Spiral Gestaltlupe
Posted by: trafassel January 09, 2017, 01:12:17 AM

Rating: by 2 members.

0 Members and 1 Guest are viewing this picture.
Related Images
 Dueling SpiralsRating: Filesize: 968.36kBDate: October 09, 2008, 08:37:02 PMComments (0)By: wolfepaw Mandelbulb spiralsRating: Filesize: 396.13kBDate: December 01, 2009, 10:02:35 PMComments (2)By: Buddhi Spiraling spiralsRating: Filesize: 258.98kBDate: December 04, 2009, 02:20:56 AMComments (0)By: Guest 3 spirals ?Rating: (None)Filesize: 688.42kBDate: January 21, 2010, 02:24:51 PMComments (0)By: bib SpiralsRating: Filesize: 3.16MBDate: March 12, 2016, 09:34:04 PMComments (0)By: JFP053

 Comments (4) trafassel Fractal Bachius Posts: 531 January 09, 2017, 11:35:29 PMThanx pupukuusikko.I did not test other scales than 1. The idea of using box size of 0.5 to reach nice results for scaling 1 comes from msltoe (see: http://www.fractalforums.com/index.php?action=gallery;sa=view;id=7604).Set x=-x in each iteration is inspired from the escape time algorithm for Kleinian group limit sets fragment code at http://www.fractalforums.com/3d-fractal-generation/an-escape-tim-algorithm-for-kleinian-group-limit-sets/msg98248/#msg98248 .Using unlimited folding as demostrated here and remove y folding makes the spirals more regular. This ideas was also inspired from the Kleinian Group formula by trying to remove the cuts, caused by the line of separation.I.e. the unlimited folding is of course much faster, if you use:      x=x%2;      z=z%2;      while(Math.Abs(x)>0.5)      {        if(x>0.5)  x =  1-x;        if(x<-0.5) x = -1-x;      }      while(Math.Abs(z)>0.5)      {        if(z>0.5)  z =  1-z;        if(z<-0.5) z = -1-z;      }This is not the same as:      x = x-Math.Floor(x+0.5);      z = z-Math.Floor(z+0.5);which is used in the escape time algorithm for Kleinian Group.Although there is no y folding the fractal is not flat as expected and the spirals occour in all 3D directions. pupukuusikko Alien Posts: 35 January 09, 2017, 07:40:55 PMExcellent spirals. How does the brot look without folding on y axis?Do you see spirals on more reasonable scales? As you know, with DE methodsapproaching scale=1.0 is difficult. trafassel Fractal Bachius Posts: 531 January 09, 2017, 10:52:23 AMThank you. I newer know, that generating spirals in the Mandelbox was so simple. mclarekin Fractal Senior Posts: 1739 January 09, 2017, 03:47:31 AMNice one