Logo by Tglad - 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 26, 2024, 11:44:42 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: Folding, IFS, raytracing and continuity  (Read 652 times)
0 Members and 1 Guest are viewing this topic.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« on: November 03, 2011, 04:56:55 PM »

This problem obsesses me from a long time and I really cannot see a solution in the horizon. cry

Let's talk about this formula;

Code:
sierpinski3(x,y,z){
   r=x*x+y*y+z*z;
   for(i=0;i<10 && r<bailout;i++){
      rotate1(x,y,z);
     
      if(x+y<0){x1=-y;y=-x;x=x1;}
      if(x+z<0){x1=-z;z=-x;x=x1;}
      if(y+z<0){y1=-z;z=-y;y=y1;}
     
      // rotate2(x,y,z); simplify the formula discarding rotations

      x=scale*x-(scale-1);
      y=scale*y-(scale-1);
      z=scale*z-(scale-1);
      r=x*x+y*y+z*z;
   }
   return (sqrt(r)-2)*scale^(-i);//the estimated distance
}

Discard the bells and whistles and talk about the folding.

      if(x+y<0){x1=-y;y=-x;x=x1;}
      if(x+z<0){x1=-z;z=-x;x=x1;}
      if(y+z<0){y1=-z;z=-y;y=y1;}


This folds with continuity the 3D space.
Sierpinski pyramid is a 3D symmetric solid fractal. It has a constant scale for all his transforms and all transforms are linear. Plus rotation is costantly zero.

With all those simplifications we can raytrace the fractal with a surprisingly elegant formula and without using any special flag (except for the scale correction *scale^(-i) ). The variables x,y,z are and stay continuous even after the folding.

The problem is; is it possible to write a continuous transformation for x,y,z, without using additional memory flags or techniques, for non symmetrical or differently symmetrical IFS? For example, can anybody write a simple formula for the Dragon curve in 2D without using any flag, without branch cuts or creating discontinuity in the x,y,z vector field? cheesy The mystery continues... undecided
Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Juliabrot raytracing and distance estimation 3D Fractal Generation fractalrebel 1 2590 Last post November 22, 2009, 01:32:26 PM
by David Makin
Casual continuity Images Showcase (Rate My Fractal) Kali 0 768 Last post March 17, 2011, 04:44:16 AM
by Kali
For Jesse, article about raytracing and stuff Mandelbulb 3d DarkBeam 4 1242 Last post November 06, 2011, 05:18:59 PM
by Jesse
Brute force raytracing + binary 0.9.12b = broken? Fragmentarium Roquen 9 1709 Last post July 19, 2013, 03:45:16 PM
by Roquen
Graphics card / CPU collaboration for fast high precision raytracing? 3D Fractal Generation Mrz00m 1 1855 Last post October 13, 2014, 11:17:02 PM
by laser blaster

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