News: Check out the originating "3d Mandelbulb" thread here  ## The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

 Pages:    Go Down       Author Topic: Menger 168.10016  (Read 416 times) Description: 0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius Posts: 531  « on: December 04, 2016, 08:47:16 PM »

Menger 168.10016 http://www.fractalforums.com/index.php?action=gallery;sa=view;id=19825

public override void Init()
{
base.Init();
{
SetParameterBulk("Formula.Static: Cycles=8 Julia=0 jx=0 jy=0 jz=0 Scene: CenterX=-0.00769903934544111 CenterY=0.196128027329687 CenterZ=-0.00761911088218881 Radius=1.9706075263103E-07 Transformation.Camera: AngleX=144.43333935272 AngleY=-74.8684800264154 AngleZ=34.5016274721693 IsometricProjection=1 Position=1 intern.Formula: TempUpdateVal=590b2033d109c03de80c3089bad6543d");
}
}

public override bool GetBool(double x,double y,double z)
{
double sin45=Math.Sqrt(0.5);
double scale=1.81;
double offsetX=1.15;
double offsetY=0.932;
double offsetZ=1.01;
for (int n=1;n<100;  n++)
{
x=Math.Abs(x);
y=Math.Abs(y);
z=Math.Abs(z);
if (x*x+y*y+z*z>2000000000){ return false; }
if (x<y) { double a=x; x=y; y=a; }
if (x<z) { double a=x; x=z; z=a; }
if (y<z) { double a=y; y=z; z=a; }
x=scale*x-offsetX*(scale-1);
y=scale*y-offsetY*(scale-1);
z=scale*z-offsetZ*(scale-1);
double xtemp=sin45 * (x-y );
y=sin45 * (y+x );
x=xtemp;
}
return true;
} Logged
 Pages:    Go Down
 Related Topics Subject Started by Replies Views Last post   into the menger Mandelbulb3D Gallery tomot 0 438 March 09, 2011, 01:34:46 AM by tomot  Menger Web Mandelbulb3D Gallery Weber 0 360 March 15, 2012, 02:40:05 AM by Weber  Menger Web Mandelbulb3D Gallery Weber 0 359 March 16, 2012, 12:31:13 AM by Weber  Menger Structure Synth Gallery VanlindtMarc 0 288 August 02, 2013, 12:34:28 AM by VanlindtMarc   Menger 3 Short Film Peter Wilkinson 0 721 May 23, 2014, 07:28:00 PM by Peter Wilkinson