Logo by HPDZ - 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 the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. March 29, 2024, 02:01:29 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] 2   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: Mandelbox Variant 21  (Read 6710 times)
Description: simpler folding code (simpler means less code)
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« on: May 14, 2011, 05:11:12 AM »

Here is the new folding code

 // Comment out to use the original (Tglad) Mandelbox formula.

  // if (x > 1) x = 2.0 - x; else
  if (x < -1) x = -2.0 - x;
            
  // if (y > 1)    y = 2.0 - y;  else
  if (y < -1) y = -2.0 - y;
            
  // if (z > 1)   z = 2.0 - z; else
  if (z < -1) z = -2.0 - z;

// End Code
 

scale=1.04

minScale=0

300 iterations.



* Data22pic10042a.jpg (223.97 KB, 1200x1200 - viewed 159 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #1 on: May 14, 2011, 05:15:09 AM »

public override void Init() {base.Init();additionalPointInfo=new AdditionalPointInfo();}


// Simplified Mandelbox
public override long InSet(double ar, double ai, double aj,  double br, double bi, double bj, double bk, long zkl, bool invers) {

  double gr=50000; // bailoutValue
  double xx, yy, zz; // temp var
  long tw; // boring
  int n;
  double x=0,y=0,z=0;
  double r_n = 0;

  xx = x * x; yy = y * y; zz = z * z;
  tw = 0L;
 double r = Math.Sqrt(xx + yy + zz);

// This fixid to a special non Julia-variant
  double scale = 1.05;

  // Surface Coloring
  additionalPointInfo.red=0;
  additionalPointInfo.green=0;
  additionalPointInfo.blue=0;

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

  // Original box fold is replaced by x=abs(x); y=abs(y); z=abs(z)
  // Inspired by the work of Kali.
   
  // Comment out to use the original (Tglad) Mandelbox formula.

  // if (x > 1) x = 2.0 - x; else
  if (x < -1) x = -2.0 - x;
             
  // if (y > 1)    y = 2.0 - y;  else
  if (y < -1) y = -2.0 - y;
             
  // if (z > 1)   z = 2.0 - z; else
  if (z < -1) z = -2.0 - z;
             
  //  ; fold sphere onto itself
  double fixedRadius = 1;
  double minRadius = 0.00001;

  xx=x*x;yy=y*y;zz=z*z;
  double length=   r = xx + yy + zz;

// Colors
  if(r!=0) {
  additionalPointInfo.red+=1.0*xx/r;
  additionalPointInfo.green+=1.0*yy/r;
  additionalPointInfo.blue+=zz/r;
  }
           
  // Bailout Condition
  if (length > gr) {  tw = n; break; }

 double mult=1;

 if (length < minRadius) {
 //     mult=Math.Sqrt(fixedRadius)/(minRadius);
 }   else
 if (length < fixedRadius) {
   mult=Math.Sqrt(fixedRadius)/(length);
 }
 mult*=scale;
 x*=mult;
 y*=mult;
 z*=mult;

// In Julia Mode: the fixed Julia values
// Iin Mandelbrot set mode: the room coordinates of the pixel to test
   x+=br;
   y+=bi;
   z+=bj;
 }

// For inside rendering
if (invers) {if (tw == 0) tw = 1; else tw = 0; }

  // Warning: this valaue can be very dangereus, if it is used for distanve esitmation:
  //
  return (tw);
}


* Data22pic10082f.jpg (246.42 KB, 1200x1200 - viewed 166 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #2 on: May 17, 2011, 09:29:51 PM »

The geometry is similar to the regular mandelbox, but the "last budda steps"-coloring method, described in: http://www.fractalforums.com/theory/coloring-the-mandelbulb/
define a nice surface coloring.

 



* Data601pic10019b.jpg (249.44 KB, 1200x1200 - viewed 153 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #3 on: May 18, 2011, 11:54:24 PM »

Typical Mandelbox structures: The spiral.


* Data601pic10206c.jpg (250.16 KB, 1200x1200 - viewed 159 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #4 on: May 22, 2011, 11:49:27 PM »

Infinity


* Data634pic10058original.jpg (250.97 KB, 1200x1200 - viewed 166 times.)
« Last Edit: May 22, 2011, 11:52:05 PM by trafassel, Reason: pic » Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #5 on: May 23, 2011, 12:35:14 AM »

The only real 3D part in this picture are the green holes. Use default surface painting.


* Data635pic10045original.jpg (248.57 KB, 1200x1200 - viewed 155 times.)
« Last Edit: May 25, 2011, 08:17:21 PM by trafassel » Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #6 on: May 25, 2011, 08:15:07 PM »

This is not a sine wave.


* Data645pic10086a.jpg (188.76 KB, 1280x720 - viewed 150 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #7 on: May 31, 2011, 10:43:00 PM »

The monster and the plant.


* Data670pic10046c.jpg (181.93 KB, 1200x1000 - viewed 172 times.)

* Data667pic10052a.jpg (202.26 KB, 1280x720 - viewed 158 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #8 on: June 05, 2011, 12:06:22 AM »

Two sides of the same thing.


* Data678pic10066small.jpg (254.26 KB, 1200x1200 - viewed 154 times.)

* Data678pic10072small.jpg (251.56 KB, 1200x1200 - viewed 141 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #9 on: June 07, 2011, 11:09:37 PM »

My first journey into this nice box (which is really not a box - its a spherical segment).

<a href="http://www.youtube.com/v/8c8Yfi25Za0&rel=1&fs=1&hd=1" target="_blank">http://www.youtube.com/v/8c8Yfi25Za0&rel=1&fs=1&hd=1</a>
Logged
miner49er
Safarist
******
Posts: 82


« Reply #10 on: June 08, 2011, 12:31:52 AM »

Amazing video trafassel!
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #11 on: June 13, 2011, 10:33:46 PM »

Thanks.

Even the 4d variant looks very symmetric.


* Data2pic10168a.jpg (248.07 KB, 1200x1200 - viewed 154 times.)

* Data2pic10040smallb.jpg (251.69 KB, 1200x1200 - viewed 158 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #12 on: June 15, 2011, 08:52:41 PM »

But the most symmetric structures can be found in some julias.

Default Julia with Seed = (0, 0, 0)

and

Julia with Seed = (0.045, 0, 0)


* Data695pic10324a.jpg (235.31 KB, 1200x1200 - viewed 151 times.)

* Data695pic10338c.jpg (243.85 KB, 1200x1200 - viewed 164 times.)
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #13 on: June 16, 2011, 11:24:18 PM »

More Julia Sets


* Data696pic10133a.jpg (160.43 KB, 1200x1200 - viewed 128 times.)

* Data696pic10145a.jpg (141.12 KB, 1200x1200 - viewed 126 times.)
Logged
miner49er
Safarist
******
Posts: 82


« Reply #14 on: June 16, 2011, 11:40:20 PM »

Wow, I love those last julia sets - very beautiful and interesting indeed!
Logged
Pages: [1] 2   Go Down
  Print  
 
Jump to:  


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