trafassel
Fractal Bachius
Posts: 531
|
|
« 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.
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« 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); }
|
|
|
Logged
|
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #3 on: May 18, 2011, 11:54:24 PM » |
|
Typical Mandelbox structures: The spiral.
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #4 on: May 22, 2011, 11:49:27 PM » |
|
Infinity
|
|
« Last Edit: May 22, 2011, 11:52:05 PM by trafassel, Reason: pic »
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« 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.
|
|
« Last Edit: May 25, 2011, 08:17:21 PM by trafassel »
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #6 on: May 25, 2011, 08:15:07 PM » |
|
This is not a sine wave.
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #7 on: May 31, 2011, 10:43:00 PM » |
|
The monster and the plant.
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #8 on: June 05, 2011, 12:06:22 AM » |
|
Two sides of the same thing.
|
|
|
Logged
|
|
|
|
|
miner49er
|
|
« Reply #10 on: June 08, 2011, 12:31:52 AM » |
|
Amazing video trafassel!
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #11 on: June 13, 2011, 10:33:46 PM » |
|
Thanks.
Even the 4d variant looks very symmetric.
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« 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)
|
|
|
Logged
|
|
|
|
trafassel
Fractal Bachius
Posts: 531
|
|
« Reply #13 on: June 16, 2011, 11:24:18 PM » |
|
More Julia Sets
|
|
|
Logged
|
|
|
|
miner49er
|
|
« Reply #14 on: June 16, 2011, 11:40:20 PM » |
|
Wow, I love those last julia sets - very beautiful and interesting indeed!
|
|
|
Logged
|
|
|
|
|