Logo by wmauzey - 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 us on facebook
 
*
Welcome, Guest. Please login or register. April 25, 2024, 01:53:00 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: trapped buddhabrot (evilbrot \o/)  (Read 576 times)
0 Members and 1 Guest are viewing this topic.
ker2x
Fractal Molossus
**
Posts: 795


WWW
« 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 :


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  evil "
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  sad "

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]++;
      }

    }
« Last Edit: July 29, 2010, 08:39:50 PM by ker2x » Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
ker2x
Fractal Molossus
**
Posts: 795


WWW
« Reply #1 on: July 29, 2010, 08:39:14 PM »

what about : "evilbrot \o/" ?  wink
Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #2 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 ;(

Logged

---

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


« Reply #3 on: July 30, 2010, 09:32:21 PM »

haha, I know exactly where you have got the basis for that code from smiley
I'm modifying the same code^^

Really nice smiley
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 smiley
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Trapped flowers UltraFractal Gallery bib 1 766 Last post June 13, 2009, 05:17:36 PM
by GFWorld
The trapped hexabrot I Images Showcase (Rate My Fractal) Kali 1 988 Last post March 01, 2011, 05:44:29 AM
by weavers
The trapped hexabrot II Images Showcase (Rate My Fractal) Kali 2 1161 Last post February 28, 2011, 03:14:24 AM
by M Benesi
Trapped in menger Mandelbulb3D Gallery Theli 1 460 Last post May 24, 2011, 11:44:29 PM
by Jesse
Trapped Fractal Science Kit Gallery Ross Hilbert 0 476 Last post September 10, 2014, 06:01:22 PM
by Ross Hilbert

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.129 seconds with 24 queries. (Pretty URLs adds 0.006s, 2q)