Logo by Pauldelbrot - 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: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. March 29, 2024, 11:05:45 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: Interacting 8th order bulbs  (Read 819 times)
0 Members and 1 Guest are viewing this topic.
fractower
Iterator
*
Posts: 173


« on: April 06, 2011, 08:51:21 PM »

Interacting 8th order  bulbs



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

Spatially separated bulbs are allowed to influence one another. Additional orbit traps are created when one bulb maps to another. This creates bulblets in one orientation and bands in another.

Hacked mandelbulber 0.97 fractal.cpp.

          case trig:
         {
                 // offset and rototate bulb 1
                 CVector3 p1(1.5,0,0);
                 CVector3 z1 = z - p1;
            double temp = z1.x;
            z1.x = z1.z;
            z1.z = -temp;
            double r1 = z1.Length();
            double rp1 = pow(r1, p);
            double th1 = z1.GetAlfa();
            double ph1 = -z1.GetBeta();
            CVector3 rot1((p) * th1, (p) * ph1);
            z1 = rot1 * rp1;
            temp = z1.x;
            z1.x =  - z1.z;
            z1.z =  temp;

            // offset bulb2
                 CVector3 p2(-1.5,0,0);
                 CVector3 z2 = z - p2;
            double r2 = z2.Length();
            double rp2 = pow(r2, p);
            double th2 = z2.GetAlfa();
            double ph2 = -z2.GetBeta();
            CVector3 rot2(p * th2, p * ph2);
            z2 = rot2 * rp2;

            // calculate zone of influence for each bulb
            double w1, w2;
            w1 = 1.0/(1.0 + z1.Length()/(z2.Length()+.00001));
            w2 = 1.0/(1.0 + z2.Length()/(z1.Length()+.00001));
            w1 = w1 * w1;
            w2 = w2 * w2;

            // Merge bulbs together.
            z = z1 * w1 + z2 * w2;
            z = z * (1.0/(z.Length()+.00001)) *
                (z1.Length() * w1 + z2.Length() * w2)+constant;
            r = z.Length();
            break;
         }
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
The real 3D Mandelbulb does not have bulbs Mandelbulb Implementation Jules Ruis 7 5348 Last post May 25, 2010, 12:50:13 PM
by Jules Ruis
Bulbs Mandelbulb3D Gallery GrahamSym 0 612 Last post October 08, 2011, 08:56:36 AM
by GrahamSym
Water Bulbs Mandelbulb3D Gallery Tahyon 0 581 Last post December 09, 2011, 02:42:06 PM
by Tahyon
Steel bulbs Mandelbulb3D Gallery Sittinglight 0 507 Last post March 15, 2012, 03:49:36 PM
by Sittinglight
Polka Dots Bulbs Mandelbulb3D Gallery PhotoComix 0 588 Last post May 04, 2012, 04:21:56 PM
by PhotoComix

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