Logo by Cyclops - 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. April 27, 2024, 07:06:01 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 [2] 3 4   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: Coloring the Mandelbulb  (Read 10222 times)
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #15 on: May 13, 2010, 01:37:20 AM »

Same color method; 10 iterations.


* Data327pic10142smallpaintnet.jpg (108.71 KB, 1200x720 - viewed 230 times.)
Logged
reesej2
Guest
« Reply #16 on: May 13, 2010, 01:56:13 AM »

Wow, very nice! Looks amazing.
Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #17 on: May 13, 2010, 11:11:46 AM »

That looks pretty good smiley
Logged
KRAFTWERK
Global Moderator
Fractal Senior
******
Posts: 1439


Virtual Surreality


WWW
« Reply #18 on: May 14, 2010, 10:40:08 AM »

WOW, it looks like those fabrics which changes "metallic" colours due to the light angle.

Really amazing!
Logged

cbuchner1
Fractal Phenom
******
Posts: 443


« Reply #19 on: May 14, 2010, 11:23:46 AM »


Soap bubble!
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #20 on: May 14, 2010, 12:09:48 PM »

Color combination is given by (Gestaltlupe formula):

        public override void Init() {
          base.Init();
          additionalPointInfo=new AdditionalPointInfo();
          gr1=GetDouble("Formula.Static.Cycles");
          int tempGr=(int)gr1;
          gr1=gr1- tempGr;
          gr1=1-gr1;
          gr1*=2.4;
        }

 double gr1=0;

        public override long InSet(double ar, double ai, double aj,  double br, double bi, double bj, double bk, long zkl, bool invers) {
            double aar, aai, aaj;
            long tw;
            int n;
            int pow = 8; // n=8 entspricht dem Mandelbulb
                double gr =Math.Pow(10,gr1)+1.0;  //   10; // Ab diesem Wert liegt mit Sicherheit Nichtzugehörigkeit zur Menge vor.
            double theta, phi;

            double r_n = 0;
            aar = ar * ar; aai = ai * ai; aaj = aj * aj;
            tw = 0L;
            double r = Math.Sqrt(aar + aai + aaj);

             double      phi_pow;
             double       theta_pow;
             double    sin_theta_pow;
              double  rn_sin_theta_pow;

additionalPointInfo.red=0;
additionalPointInfo.green=0;
additionalPointInfo.blue=0;

double red=0; double green=0; double blue=0;

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

                theta = Math.Atan2(Math.Sqrt(aar + aai), aj);
                phi = Math.Atan2(ai, ar);
                r_n = Math.Pow(r, pow);

                phi_pow=phi*pow;
                theta_pow=theta*pow;
                sin_theta_pow=Math.Sin(theta_pow);
               rn_sin_theta_pow=r_n* sin_theta_pow;


                ar =  rn_sin_theta_pow * Math.Cos(phi_pow)+br;
                ai = rn_sin_theta_pow * Math.Sin(phi_pow)+bi;
                aj = r_n * Math.Cos(theta_pow)+bj;

                aar = ar * ar; aai = ai * ai; aaj = aj * aj;
                r = Math.Sqrt(aar + aai + aaj);

if(n>2) {
/*
double arPos=ar; if(arPos<0) arPos=-ar;
double aiPos=ai; if(aiPos<0) aiPos=-ai;
double ajPos=aj; if(ajPos<0) ajPos=-aj;
red+=Math.Abs(ar)/r;
green+=Math.Abs(ai)/r;
blue+=Math.Abs(aj)/r;
*/

if(ar>0)
  red+=ar/r;
if(ai>0)
  green+=ai/r;
if(aj>0)
  blue+=aj/r;

}

                if (r > gr) { tw = n; break; }

            }

additionalPointInfo.red=red;
additionalPointInfo.green=green;
additionalPointInfo.blue=blue;


            if (invers) {
                if (tw == 0)
                    tw = 1;
                else
                    tw = 0;
            }

            return (tw);

        }
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #21 on: May 14, 2010, 12:12:40 PM »

Colors on a flat surface.


* Data49pic10003a.jpg (111.43 KB, 1280x720 - viewed 250 times.)
Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #22 on: May 14, 2010, 12:18:02 PM »

also nice but obviously, the shape adds a lot to it. smiley
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #23 on: May 21, 2010, 09:23:23 AM »

I don't think so. It seems, as the color "knows" how the shape looks in higher iterations. And perhaps this is fundamental for all variants of the mandelbulb fractal.


« Last Edit: May 21, 2010, 09:35:28 PM by trafassel » Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #24 on: May 21, 2010, 11:50:49 AM »

With adding a lot to it, I meant things like shadow.
That colour pattern lacks of shadow. No wonder: Where should it come from? smiley
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #25 on: June 01, 2010, 10:51:52 PM »

Same picture as the spine in the gallery, but with post processing (Paint.Net).


* Data339pic10810small_paintnet.jpg (111.6 KB, 1200x720 - viewed 473 times.)
Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #26 on: June 03, 2010, 11:50:37 AM »

nice cheesy A metallic soap bubble smiley
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #27 on: June 05, 2010, 10:48:12 PM »

Stereo image

Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #28 on: June 06, 2010, 06:44:40 PM »

hard to think of it as stereo with this arrangement tongue stuck out
But it looks very nice smiley
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #29 on: June 06, 2010, 07:20:01 PM »

use CTRL - +/-
to lower the zoom, to see it side by side
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Pages: 1 [2] 3 4   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
A new look into escapetime fractals using abs & inner coloring (new) Theories & Research « 1 2 » Kali 18 3082 Last post October 23, 2012, 05:48:56 PM
by Alef
Coloring mandelbulb 3D Fractal Generation khyperia 3 4236 Last post March 06, 2012, 06:39:52 PM
by Alef
Multiwave coloring for Mandelbrot UltraFractal « 1 2 3 » Pauldelbrot 31 21375 Last post September 17, 2014, 08:07:10 PM
by quaz0r
What's coloring you prefer (for M-Set) Help & Support SeryZone 7 417 Last post May 04, 2014, 08:44:57 AM
by SeryZone
Coloring Fragmentarium « 1 2 3 4 5 » M Benesi 68 9474 Last post April 18, 2016, 08:31:51 PM
by Crist-JRoger

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