Logo by haltenny - 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. January 10, 2026, 08:12: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: The Search for the 3D Mandelbrot Set Continues  (Read 1105 times)
Description: This time with a modification of the Mandelbulb formula
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« on: June 19, 2015, 08:54:06 PM »

// Gestaltlupe Formula
public override void Init() {
  base.Init();
  additionalPointInfo=new AdditionalPointInfo();
  if(GetString("intern.Formula.TempUpdateVal")!="3d6be9ad4f2001fbd5b92d751ac8a6b9")
{SetParameterBulk(@"<Entry Key='Border.Max.x' Value='1.23114390555897' />
<Entry Key='Border.Max.y' Value='-0.240455052613624' />
<Entry Key='Border.Max.z' Value='0.00389757765689654' />
<Entry Key='Border.Min.x' Value='1.2215255559828' />
<Entry Key='Border.Min.y' Value='-0.250073402189787' />
<Entry Key='Border.Min.z' Value='-0.00572077191926846' />
<Entry Key='Formula.Fix.Height' Value='1' />
<Entry Key='Formula.Mandelbulb.Pow1' Value='' />
<Entry Key='Formula.Static.Cycles' Value='22' />
<Entry Key='Formula.Static.Formula' Value='-1' />
<Entry Key='Formula.Static.jx' Value='0' />
<Entry Key='Formula.Static.jy' Value='0' />
<Entry Key='Formula.Static.jz' Value='0' />
<Entry Key='Formula.Static.jzz' Value='0' />
<Entry Key='Formula.Static.MinCycle' Value='0' />
<Entry Key='Transformation.Camera.AngleX' Value='160' />
<Entry Key='Transformation.Camera.AngleY' Value='40' />
<Entry Key='Transformation.Camera.AngleZ' Value='70' />
<Entry Key='Transformation.Perspective.Cameraposition' Value='1' />
<Entry Key='View.Perspective' Value='1' />
<Entry Key='View.Height' Value='1200' />
<Entry Key='View.Width' Value='1200' />
<Entry Key='intern.Formula.TempUpdateVal' Value='3d6be9ad4f2001fbd5b92d751ac8a6b9' />");}
}

public override long InSet(double x, double y, double z, 
                                   double x0, double y0, double z0, double bk,
                                   long maxiter, bool inverse) {

  int tw=0,n=0;
  double r=0;
  double gr=10;
  double xx=0,yy=0,zz=0;
  double x1=0,y1=0,z1=0;

  double minR=1000; // used for coloring
  Fractrace.Geometry.VecRotation vecRot = new Fractrace.Geometry.VecRotation();

  for (n = 1; n < maxiter; n++) {

     xx=x*x;yy=y*y;zz=z*z;
     r=xx+yy+zz;
     if (r > gr) { tw = n; break; }

     double theta = Math.Atan2(Math.Sqrt(xx + yy), z);
     double phi = Math.Atan2(y, x);

     double ystart=y;
     double xstart=x;


     vecRot.x = 0;
     vecRot.y = 0;
     vecRot.z =1;
     vecRot.angle = 2.0*phi;
     vecRot.Normalize();
     Fractrace.Geometry.Vec3 pos=new Fractrace.Geometry.Vec3(x,y,z);
     Fractrace.Geometry.Vec3 newPos= vecRot.getTransform(pos);
     x = newPos.X;
     y = newPos.Y;
     z = newPos.Z;



if(x!=0 && y!=0)
{
     vecRot.x = -y;
     vecRot.y = x;     
     vecRot.z = 0;
     vecRot.angle = 2.0*theta ;
     vecRot.Normalize();
     Fractrace.Geometry.Vec3 pos2=new Fractrace.Geometry.Vec3(x,y,z);
     Fractrace.Geometry.Vec3 newPos2= vecRot.getTransform(pos2);
     x = newPos2.X;
     y = newPos2.Y;
     z = newPos2.Z;
}

     //r=Math.Sqrt(r);
     x=r*x+x0;
     y=r*y+y0;
     z=r*z+z0;

     if(minR>r) minR=r; //  used for coloring

  }

// coloring:
additionalPointInfo.red=0.01;
additionalPointInfo.green=0.01;
additionalPointInfo.blue=minR;

if (inverse) { if (tw == 0) tw = 1; else tw = 0; }
   return (tw);
}


* Data120pic10446s2.jpg (253.91 KB, 1200x1200 - viewed 150 times.)
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
True 3D mandelbrot fractal (search for the holy grail continues) The 3D Mandelbulb « 1 2 ... 17 18 » illi 260 68942 Last post November 25, 2010, 12:57:55 AM
by cKleinhuis
Search function Discuss Fractal Forums cbuchner1 4 1080 Last post December 29, 2009, 11:21:12 PM
by Nahee_Enterprises
Search doesn't "search".... Discuss Fractal Forums Thunderwave 8 1533 Last post June 06, 2011, 12:25:51 AM
by Jesse
v99b beta continues to render stereo anim images after unticking box bug reporting kameelian 0 1850 Last post July 02, 2012, 07:34:34 PM
by kameelian
Search for Nemo Mandelbulb3D Gallery Sitting Duck 0 367 Last post July 04, 2013, 08:55:05 AM
by Sitting Duck

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.382 seconds with 26 queries. (Pretty URLs adds 0.008s, 2q)