Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => Amazing Box, Amazing Surf and variations => Topic started by: Alef on June 27, 2017, 01:34:40 PM




Title: Chudobox
Post by: Alef on June 27, 2017, 01:34:40 PM
I made it as clone of AmazingBox. First versions of it was not very exeptional. Throught it generated something like storehouse of rounded cut boxes. But that is boring. However the last version seems better and some transformations could be interesting and I think deserve post.

Code:
///VERSION of  spherefold,  by analytical function
temp := abs(x) + abs(y) + abs(z);

intradius :=round(temp);
temp := ( abs( intradius - Min_R )  - abs( intradius + Min_R) +1 );

x := x * temp  ;
y := y * temp  ;
z := z * temp  ;

Here is spherefold like transformation. radius = abs(x) + abs(y) + abs(z) generates diamond shape, who acts like sphere. (With diamond I meant just rotated cube.) Here visual differences are few, but I hadn't tested it on the full spherefold. It is mutch faster than quadratic based radiuss.
This required integer number or else fractal is mess.
Alsou one can try -> radiuss = power ( x*x*x*x , y*y*y*y ,z*z*z*z , 0.25 ); That would be significantly slower and pillow shaped.


Code:
///Addition
x := x + Addition ;
y := y + Addition ;
z := z + Addition ;

I would remove this but then variables of older saved files would not be compatible. It mostly just moves it around.


Code:
[CONSTANTS]
.Double sqrt_1_2 = 0.707106781186548
.Double sqrt_1_3 = 0.577350269189626
.Double sqrt_2_3 = 0.816496580927726
.Double sqt13TOsqt12 = 0.408248290463863
.Double sqt23TOsqt12 = 0.577350269189626

///Benesi to Mag / pine transformation
  temp := x * sqt23TOsqt12 - z * sqt13TOsqt12 ;
  z1 := x * sqrt_1_3 + z * sqrt_2_3;
  y1 := y * sqrt_1_2;
  x1 := temp - y1 ;
  y1 := temp + y1 ;
I took the code from Benesi JIT formula and further optimised by adding two more constants. I have no idea how this works, I hadn't looked deeper into. More importantly it looks good. The result is fixed rotation.


Code:
///adding this transformation at the regulated amount.
temp:= (1-vBenesiRotation);
x:=x1*vBenesiRotation + x*temp;
y:=y1*vBenesiRotation + y*temp;
z:=z1*vBenesiRotation + z*temp;

I wanted to add a switch and added this. It not only switches it on or off (0 or 1), but moves vector along the line between these two points. And the values <0 and >1 is meaningfull, too.


Code:
///folds of different lenght
x := x +  abs(x- FoldX) - abs(x+ FoldX)  ;
y := y +  abs(y- vFoldY) - abs(y+ vFoldY)  ;
z := z +  abs(z- vFoldZ) - abs(z+ vFoldZ)  ;
One operation less than boxfold.


Code:
/// sigma function based Fish eye lense like transformation together with scale
temp:= scale/(antiFisheye+1);
temp:= (antiFisheye + sqrt( x*x + y*y + z*z ) )*temp;

x := temp * x ;
y := temp * y ;
z := temp * z ;

It is not quite a trigonometric fisheye like in Apophysis, but the effect could be simmilar. This transformation is responsible why boxes looks like heaps of some real life things, they are slightly round.


Code:
// + C
x := x  + PIteration3D^.J1;
y := y  + PIteration3D^.J2;
z := z  + PIteration3D^.J3;

end;
[END]
Formula version 1.2
 
 * * *
By Edgar Malinovsky

That's all. It's here:
http://www.fractalforums.com/mandelbulb-3d/em-formulas-for-mandelbulb3d/

Effect of BenesiToMag:
(http://www.fractalforums.com/index.php?action=dlattach;topic=25795.0;attach=14694;image)

In attachment plain version


Title: Re: Chudobox
Post by: Alef on July 01, 2017, 02:43:23 PM
I think I found something worthy in this.

It is like this:
Chdudobox formula version 1.2 (earlyer woun't go)
Fold in two axis and no fold in one axis - surface.
Min_R > 1
Then shapes are created largely by spherefold. Here it generates not a spheres but "diamonds" and  pyramids. Especialy the julia sets as then the centers of fold moves with seeds.

They are problematic - dust, noise. Abs based "diamond" radius is less solid than quadratic based sphere. The greatest problem is to solidify them. Hovewer the scenery is worth it. There are certain lack of quasi-everyday fractals.
Only the fractals can generate things unimaginable. When normal painting methods can create just imaginable things.

If someone can found a way that this woun't be so sssllllllooooooooowwwwwwwwwww. It solidified at maxiter 500 and now is sandstone.
Code:
Mandelbulb3Dv18{
g.....N....9/...o5...26...kuPcepT9P0.DHZcJr7u8.Eyr98GywvFzXrwTq..KjtzSeW8qZqR7yD
................................35iJplMukz1......Gc9//.........E........y.2...wD
...Uz6/....A.....w.1/.....UB/...b2...2E0.....6gbOV9chGrD/w.........m/dkpXm1....U
z.....kD1A../2kMmUQMqNXuzAQsuXKtPayjGAyET8sL2z9...........U0.....y1...sD...../..
.w1...kDkxV.V37eoxHGGgTr4Yh7zA2cGVrow4mjDLvYCS6vpv9Hdj.FIP3PzcIjKQLjSsqDSGDL7vqm
gwXHLomklMVPzGR4Tj7OFlqDU..../oAr...M7/..2....kD.2....sD3.G.....................
.............oAnAt1...sD....zIg7........................................p5...k1.
.....4iSoz1.......kz2gxqPH.U..6.Y....M/...UB....i/.06kB..UkwzzzzG/...62......F52
...U.O3Xhihf9BnqM..XPXo9....5c..rTzx............6.........E..0........U.8.kXWF1.
.sM93P58iz9/MmnWK2zwzC........../RU0.E190............s/........./.........E/lcEz
uUXA...bqQf.DuyD.eIDN9w5FzH.K16adRghzKEA8oDU.06..YKaZ6Aeiz1858nQJ6Tnz.ERpBK.iAwj
/6V0.2FAZ.............klrlkCx9yj.6wTJHz2Vz1..UAQL.UfiuefJ.GGqJ6..1Ak.X0E3F5L.wtb
TyNDUNweL..ecW8elt5mHS/.SudbSefTD0pS..Dwk1DyyVwYL.UbSudbQx5mHS/.SudbS8uT6Dt3.sdb
Sut2.WwYL.UbSudb..EhxJVUzzl32WuNyz168ecOxzJgCGlW................................
E....2..F2E.....I....U....UG7FpL3poLCxpEcJ5Nj7oPs/..............................
.............................Y3E........kz1........yzoAnAnAnAHyD................
...wz...........................................................................
........................}
{Titel: Pyramids}
(http://nocache-nocookies.digitalgott.com/gallery/20/5956_01_07_17_2_37_52.jpeg)

This parameter were faster with maxiter = 11 but it don't have sutch architecture.
Code:
Mandelbulb3Dv18{
g.....N....9/...9....2E...kmta.fmAF/.nqP7kY40ezDQhEacAhSayPFj4LdVttwzOK04EsFi7zD
................................35iJplMukz1......kIr./.........E........y.2...wD
...Uz6/..........wU0/.....Er....i/...2E0.....6gbOV9chGrD/.kqS9kDNeed/dkpXm1.RIJJ
zIEnAnYD16..02kMmUQMqNXuzAQsuXKtPayjGAyET8sL2z9...........U0.....y1...sD...../..
.w1...kDERq2TVwe2y19kAK/49C9z.B847/dbCmjELvYCS6v3w9Hdj.FIP3TzkIjKQLjSsrDUWr2tEAE
lwHghvViahVTziTtrpSEJlrDU..../IEf/.......2....kD.2....sD3.G.....................
.............oAnAt1...sD....zIg7..................................Uwe1vDA....k1.
.....4iSoz1.......kz.wzzz1.U..6.P....61...EB....Z0...w.....F....8/...I1.....SF52
...U.0aZczDM6/nzMg2czX6dE16./c..zrhe..UoK/nl2xvj6sM93P58iz1...........U/8.EM7Z2.
.wUmc2beYz1.dA8E5Exwz0........../6U0.wzzz1...........s/...................E.0c..
zzzz.............0...................2U.8.kzzzD............8....................
/6U0.wzzz1...................................6W6W..KMV3KJ7mzfr9.UPQWU53FW6W6.U3K
MVJPVNita1.KMV3K79LTlhB.aZpiveeTW6W6.U3KMVJwy7W6W..KMV3KRxb6W60.MV3KMhvTW6W6.U3K
MVpzz7W6W..KMV3K...KMV3Kzz/s4bslyz1KMV3KxzJWJiwZ................................
E....2..F2E.....I....U....UG7FpL3poLCxpEcJ5Nj7oPs/..............................
.............................Y3E........kzXaNaNaNaNwz..........E................
...wz...........................................................................
........................}
{Titel: Pyramids2}
(http://nocache-nocookies.digitalgott.com/gallery/20/5956_01_07_17_2_40_43.jpeg)