Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => (new) Theories & Research => Topic started by: ker2x on July 29, 2010, 08:31:08 PM




Title: trapped buddhabrot (evilbrot \o/)
Post by: ker2x on July 29, 2010, 08:31:08 PM
Coder advisory : The code is extremly ugly.
Link to a working applet : http://fractals.s3.amazonaws.com/applets/orbited_buddha/applet/index.html
screenshot :
(http://fractals.s3.amazonaws.com/buddhabrot/orbitedbuddha.jpg)

explanation :
1) the base is a good old B&W buddhabrot
2) i do not draw orbit
3) if at any time the orbit is ((x > -0.01) && (x < 0.01)) || ((y > -0.01) && (y < 0.01)) THEN i set a flag "trapped  :evil1: "
4) i do not draw the next 2 orbit (to avoid drawing an ugly cross)
5) then i draw the 8 next orbit and set the flag back to "not trapped  :sad1: "

the interesting part of the source code is below (full source can be found on the applet page) :
Code:
    if(  ((xnew > -0.01) && (xnew < 0.01)) || ((ynew > -0.01) && (ynew < 0.01))  ) {
      trapped = true;
    }
    if(trapped) {
      if(trapthresold >0) {
        trapthresold--;
      } else {
        trapped = false;
        trapthresold = 10;
      }
    }
    if (drawIt && (i > 0)) {
      ix = int(dim * (xnew + 2.0) / 3.0);
      iy = int(dim * (ynew + 1.5) / 3.0);
      if (ix >= 0 && iy >= 0 && ix < dim && iy < dim && trapped && trapthresold < 9 && trapthresold > 0) {
        exposure[ix*dim+iy]++;
      }

    }


Title: Re: trapped buddhabrot
Post by: ker2x on July 29, 2010, 08:39:14 PM
what about : "evilbrot \o/" ?  :dink:


Title: Re: trapped buddhabrot (evilbrot \o/)
Post by: cKleinhuis on July 29, 2010, 11:09:40 PM
as there is no end in exploration, i am really sad that i am right now do not really have to play around with all the new experiments you people still make ( i completely missed that ifs mapping thing to surfaces ) but as always, i have to support you all in that, great experiment ker2x
and right now i just have 2core laptop around to explore the fantastic bulb rendering software ;(



Title: Re: trapped buddhabrot (evilbrot \o/)
Post by: kram1032 on July 30, 2010, 09:32:21 PM
haha, I know exactly where you have got the basis for that code from :)
I'm modifying the same code^^

Really nice :)
Right now I'm experimenting with matrices:
\begin{bmatrix} a & b \\ c & d\end{bmatrix}^2+\begin{bmatrix} w & x \\ y & z\end{bmatrix}
and then just render out one of the possible 2-vectors, built by the 2 of the matrix elements...
I start as usual: a,b,c,d=0 and w,x,y,z= some point in the space... (as if you rendered an Mset)
It works but the result isn't too interesting... Depending on which combination you pick, it's basically a straight line in different orientations...
Maybe I find a more interesting variation of it...


Your experiment looks like a ton of spot lights of which the beams are obviously somehow distorted. Either it's watched through a very odd lens or there are are some singularities around :)