Logo by Fiery - 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: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. April 19, 2024, 05:01:53 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: Mandelbulb Plant  (Read 814 times)
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« on: February 29, 2016, 10:48:11 PM »

Mandelbulb Plant



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

My first spirals in a power 2 Mandelbulb variant.
Logged
Chillheimer
Global Moderator
Fractal Schemer
******
Posts: 972


Just another fractal being floating by..


chilli.chillheimer chillheimer
WWW
« Reply #1 on: February 29, 2016, 11:56:52 PM »

nice one!
Logged

--- Fractals - add some Chaos to your life and put the world in order. ---
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #2 on: March 01, 2016, 01:59:08 AM »

wow, what a nice shot, it really looks plant like wink
Logged

---

divide and conquer - iterate and rule - chaos is No random!
mclarekin
Fractal Senior
******
Posts: 1739



« Reply #3 on: March 02, 2016, 02:14:14 AM »

@ Trafassel.  Very plant like. afro afro afro

I tried coding it into Mandelbulber, but my  maths and programming was not good enough.

 I noted with my attempted code below::

  Line 3 ->    x1 not used later.

  Line 5 ->     z.y = 0, then I cannot see it being given another value before being used later in the code to multiply.

  code ->        if(x2 * z.x < 0.0) spin=!spin;//  I don't understand what is happening.






Code:
  double power = fractal->bulb.power;
  double phi = atan2(z.y, z.x);
  double x1= z.x;          // x1 ???? not used ------------------
  z.x = cos(-phi) * z.x - sin(-phi) * z.y;
  z.y = 0.0; // what???? -----------------------------------------
  double theta = atan2(-z.z, -z.x);

  if (fractal->transformCommon.functionEnabledFalse)
    theta = theta + M_PI;

  theta=(power - 1.0) * theta;
  double x2 = z.x;
  double re = cos(theta);
  double im = sin(theta);
  double a = re * z.x - im * z.z;
  z.z = re * z.z + im * z.x;
  z.x = a;
  //if(x2 * z.x < 0.0) spin=!spin;// switch off spin ????---------
  re = cos(power * phi);
  im = sin(power * phi);
  a = re * z.x - im * z.y;  // line 5 above   z.y = 0 ????--------
  z.y = re * z.y + im * z.x;
  z.x = a;

  CVector3 z2 = z * z;
  double r = z2.x + z2.y + z2.z;
  r=pow( r, (power - 1.0) / 2.0);
  z *=r;
  z.y +=c.z; // axis swap
  z.x +=c.x;
  z.z +=c.y;
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
fractal plant Fractals Applied or in Nature bib 2 2474 Last post June 28, 2010, 08:29:14 PM
by trafassel
Deadly Plant Images Showcase (Rate My Fractal) Kali 0 1057 Last post May 21, 2011, 03:42:36 AM
by Kali
Plant Structure Synth Gallery VanlindtMarc 0 506 Last post August 02, 2013, 12:33:54 AM
by VanlindtMarc
Name That Plant Images Showcase (Rate My Fractal) reactorman 4 812 Last post November 08, 2013, 04:26:52 PM
by reactorman
Plant 10 Frax Gallery Xrlcreative 0 467 Last post May 14, 2015, 08:30:02 AM
by Xrlcreative

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