Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => (new) Theories & Research => Topic started by: Alef on January 29, 2013, 06:50:23 PM




Title: SwirlBox
Post by: Alef on January 29, 2013, 06:50:23 PM
I had an idea to bring up swirls without cutouts, and using fast, continious and conformal transformations.
http://www.fractalforums.com/new-theories-and-research/succeess-with-3d-gravit-swirl/ (http://www.fractalforums.com/new-theories-and-research/succeess-with-3d-gravit-swirl/)
At first, tested this in with exp smoothing and with orbit traps so that orbits are continious and then went to 3D. Modified abox fold, fish eye transform, scale and then 3d swirl transform + C. Pseudocode with parameters being Frequency, Spin, Scale, Fold and Fisheyeness:


//Do this once.
fishdivisor= 1/(Fisheyeness+1);

//seamless version of fold
zx = abs(zx-Fold) - abs(zx+Fold) + zx;
zy = abs(zy-Fold) - abs(zy+Fold) + zy;
zz = abs(zz-Fold) - abs(zz+Fold) + zz;

//fisheye is conformal transform and a scaling.
fisheye=(Fisheyeness+sqrt( sqr(zx)+ sqr(zy)+ sqr(zz) ) )*fishdivisor*Scale;
zx=fisheye*zx;
zy=fisheye*zy;
zz=fisheye*zz;

//3D Swirl. Probably at least quasi conformal, but iteration strong.
radius = sqrt( sqr(zx)+sqr(zy)+sqr(zz) );

angx=atan2(radius+1i*zx);
angy=atan2(zx+1i*zy);
angz=atan2(radius+1i*zz);

zx= cos(Frequency*radius+ Spin*angx)*radius+Cx;
zy= sin(Frequency*radius+ Spin*angy)*radius+Cy;
zz= sin(Frequency*radius+ Spin*angz)*radius+Cz;



In 2D. Looks pretty much like kalisets/ducks:
(http://www.ljplus.ru/img4/a/s/asdam/UF_Swirlbrot_rust.jpg)

(http://www.ljplus.ru/img4/a/s/asdam/UF_Swirlbrot_flower.jpg)

Julia set is very different, orderly and smooth.
(http://www.ljplus.ru/img4/a/s/asdam/UF_Swirlbox_julia_knots.jpg)


UF parameter.
Code:
Swirlbrot_Rust_Flower {
::7WXTnjn2tTVTvtNOQ07Gw/HI01ALTJZKL1CeoBIpAL62DJBoHDolGbxG+hK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.fractalforums.com/images-showcase-(rate-my-fractal)/swirlbox-10-and-zooms/ (http://www.fractalforums.com/images-showcase-(rate-my-fractal)/swirlbox-10-and-zooms/)


Title: Re: SwirlBox
Post by: Alef on January 29, 2013, 06:51:59 PM
In 3D it's a jasper planet. This looks smoother than plain 3D swirl transform, probably becouse additional transforms softens orbits. Here are zooms out:
(http://www.ljplus.ru/img4/a/s/asdam/SWbox_5.jpg)

(http://www.ljplus.ru/img4/a/s/asdam/SWbox_4.jpg)

Closer:
(http://www.ljplus.ru/img4/a/s/asdam/SWbox_7.jpg)

This is strange
(http://www.ljplus.ru/img4/a/s/asdam/SWbox_6.jpg)

And this is even more strange
(http://www.ljplus.ru/img4/a/s/asdam/SWbox_3.jpg)

Julia set is cutted in z=-0.1
(http://www.ljplus.ru/img4/a/s/asdam/SWbox_8.jpg)

Throught no DE or GPU stuff. Chaos Pro parameter files are in attachement.


Title: Re: SwirlBox
Post by: kram1032 on January 30, 2013, 10:44:46 AM
Fisheyeness
...
fishdivisor
...
...
...
LOL!!

When I saw that pseudo-code, I really burst in laughter. That's awesome!
...

On a more relevant note: Those things look pretty pretty.
I wouldn't want to live on them - they tend to look rather sharp-edged and probably would cut me into slices upon first contact - but they do show some interesting shapes.

Why did you use zx+zy+zz as r² rather than xx+yy+zz?


Title: Re: SwirlBox
Post by: cKleinhuis on January 30, 2013, 11:02:30 AM
never forget the "fishdivisor" rofl


Title: Re: SwirlBox
Post by: Alef on January 31, 2013, 02:32:32 PM
;) Fisheyeness was meant to be serious  :clown:

Hadn't tested r^2. But woudn't a r^2 instead of r ruin atan2 angles? Actualy I even aren't shure, do angles are correct, haven't put trigonometry on the paper. Just tryed different possibilities until result were what I expected. if you ment zx, that becouse x, y, and z is predefined variables I don't want to interfere with.
Probably fisheye's radius could be optimised with r^2, throught then it would match another apophysis transform a Bubble, who realy looks almoust as Fishaye. I took it from official fractal flame pdf.

Tweaked a strange fractal spot.
(http://nocache-nocookies.digitalgott.com/gallery/13/5956_31_01_13_2_23_40.jpeg)


Title: Re: SwirlBox
Post by: kram1032 on January 31, 2013, 05:57:33 PM
what level of rotations are you using in those?

Also, it occured to me that, maybe, applying the swirl transform off-center could give interesting results.

E.g. do something like:

z=z-m
z=swirl(z)
z=z+m

to have some swirling happen around m rather than 0.

On top of that off-center-swirl, you then could choose any other transform like, for instance, the usual z=z^2 or z=z^8 or something alike.


Title: Re: SwirlBox
Post by: Alef on February 01, 2013, 03:47:15 PM
Zoomed into second, even more strange fractal.
(http://nocache-nocookies.digitalgott.com/gallery/13/5956_01_02_13_3_44_40.jpeg)


Title: Re: SwirlBox
Post by: Alef on February 01, 2013, 03:56:43 PM
Julia set of  your suggestion were pretty cool:)

Z=Z - Fold
Z=Z*scale
Z=Swirl3D(Z)
Z=Z + Fold + C

Screen is centered on (0,0,0)
(http://www.ljplus.ru/img4/a/s/asdam/Swirl_julia.jpg)

Something like this

zx= zx -Fold;
zy= zy -Fold;
zz= zz -Fold;

zx=scal*zx;
zy=scal*zy;
zz=scal*zz;

radius = sqrt( sqr(zx)+sqr(zy)+sqr(zz) );
angx=atan2(radius+1i*zx);
angy=atan2(zx+1i*zy);
angz=atan2(radius+1i*zz);
zx= cos(frequency*radius+ spin*angx)*radius;
zy= sin(frequency*radius+ spin*angy)*radius;
zz= sin(frequency*radius+ spin*angz)*radius;

zx= zx +Fold+Cx;
zy= zy +Fold+Cy;
zz= zz +Fold+Cz;


and mandelbrot set of this:
Z=Z - Fold
Z=Fisheye(Z)*scale
Z=Swirl3D(Zvector)
Z=Z + Fold + C

Screen is centered on (0,0,0) Its a bitt rugged, but that's becouse I did not spend enought time of tweaking  bailout, iterations, render. I shared this just becouse it have multi layered structures. But now it's displaced.
(http://www.ljplus.ru/img4/a/s/asdam/Swirl_mbrot.jpg)


fisheye=(Fisheyeness+sqrt( sqr(zx)+ sqr(zy)+ sqr(zz) ) )/(Fisheyeness+1)  * scale;
zx=fisheye*zx;
zy=fisheye*zy;
zz=fisheye*zz;



Title: Re: SwirlBox
Post by: kram1032 on February 01, 2013, 04:15:24 PM
can you try more subtle swirl effects? Like, test on some formula, how sensitive it is to such a swirl transform.
Try very subtle values of turn and ripple frequencies to see how far away the values have to be from default to drastically reshape the fractal.


Title: Re: SwirlBox
Post by: Alef on February 01, 2013, 04:40:40 PM
You can smoothly rotate mandelbrot with frequency *radius (ripple?), but swirl transform don't likes non integer spin *angx (turn?), and create non smooth fractal shape. At least with mandelbrot.
With box probably I would got nothing, becouse only swirls transform here is fractal generator.


Title: Re: SwirlBox
Post by: Alef on February 08, 2013, 03:40:58 PM
Here turns (spin) = 8, frequency =4. Each turn is rising in power. It's actualy a zoom into second planet like 3D fractal + colours. In some looks spirals could be evident, but they eventualy turned into something more like knots. Spiral is least energeticaly dense shape, at least in some process.
(http://nocache-nocookies.digitalgott.com/gallery/13/5956_08_02_13_3_37_19.jpeg)



Title: Re: SwirlBox
Post by: kram1032 on February 09, 2013, 12:14:42 AM
looks neatly cavey.


Title: Re: SwirlBox
Post by: Alef on February 11, 2013, 10:07:37 AM
Some kaliset / ducks like 2D thing. Tweaked and tweaked, but still don't like it's colours.
(http://nocache-nocookies.digitalgott.com/gallery/13/5956_11_02_13_10_00_07.jpeg)

Code:
Swirlbox_2D_Beta {
::rZqfghn2tTVTvxJMQ07r0+fwi7ZXjZhFalP0VpJVVtXaiUPuyLMs4GDmaMJL/77Yb2kmoWpm
  T9S4C4ZG/mPezjajo0KUvb5CCxKtKgHdzDSj6g+0e2l73BWRE5BZlthnthSaA5xGLfTOloET
  gZgzc3s0AVS7AP6DDVi23zWHTXzoxJRLX4DzDfpo3K1d8ov4MRSiI6eRp0OxjpUSLYOCt6Kg
  3IMVKXaIWjoboXYgOLfCGWuoV03L7OGgDtCG+FxrySzyLySopMKNf9F0VpFbzT2mksJLuILP
  l0KO2xzTKYr2uZTxyF1aT7oS4hpVcS6wJeLpWqgORLOCg2Vj1tREMFmpnmIRk+9DlCcIRXtN
  1d7+91G4njQX5EfjzLWe8U8jr0qKes7D5QDMBdwwg/8BhUpHt84Uq/JgyAYtT9A/riuKQdwo
  tOjPItlNnd95RlUgW/h7NWAJrpryC3emVQskdDyKIwmuhXN2ZKZHIMvo7KVP2dfXcPcrRW2Y
  0tQUAxesJtWM2rNiKJGI5wE5TCTruTW6HDAU5mC5sMGeUbO45/bxKlUMDSo+/2OenGPVqVtg
  tRXhZUabIl6RHB6ArTYHNClcAC0svC0D2acZZ7FYevH30wuwFrfz4buUPTGCz5TeXXzjXxmz
  v3r3wZv7wQZpP6Lcc5CkQ+Hmb3YR2BXOf207SoWMqsYLfceU5RZoVrRND2OEkMF+F/sciEp3
  T8UG29KthTnNEzymtEnFzizT9LXBfsskXEdSexslkEKLBL/gO63TMOyDBTfUlxco+Hkj7El3
  d0gsR1fTRKqQ1NG7bCy//CyrC/wm8xT94GA+fUl8O4NF5rSReWZEER5bjzY5n1muN/nLFPrD
  DrGBfbySLiPLHf6GpZvKx4vApOCaND==
}


Title: Re: SwirlBox
Post by: Alef on February 12, 2013, 12:16:12 PM
Very fluid 2D, much becouse of anialiasing. Lines can be very thin, too thin without antialiasing. Kind of better than previous.
(http://nocache-nocookies.digitalgott.com/gallery/13/5956_12_02_13_12_13_08.jpeg)

Code:
Swirlbox_2D_Gamma {
::iocGMhn2tPVTzNNMQ07Zm8fQjvHHJlI/BM6AdKtcA4QbZ4YGFb5YRlsMSy0k/9sy2JlCcgTc
  q6k0ur2Pev914EVBh+NLXgQBVQL5J3/kyp3bPuje9ubFGjIB9kqO0yz2iRtS1h2AfbBGpFnk
  OPnG/alTWrCeey781CzbprJ01UMZTyyFjhNm/KRfQZ74JfMaCRSQ2eRlKciTwYkR6OIN2aJH
  yFK4Ed+ehT2F4nk+lLMi+eV3hpEBWlO+KSKGvZLOnulSoZFs14UKLPPvoosYDbz2cGyIO0xJ
  FkcaKZT5yFNWnZQLGTjRcUFzDFjaUaZnwATv0kO0YSQQJcneGMSQ978VCAfwp5s4v7314kff
  Q2VdivN6FaPODucjVXzJxLKfr8ksT69jv3LUa7QgTY4xzUW8yQ4Uvk/JRXtUv3ZDRjPpCVt/
  prpv8tBtSEH/MWWBOjUmnRoFrXhTZl55ZMcZZGhgLhQn5LoWqOvqWOR0RwtBmctqTKc/20Xp
  vM9fV8D5DOVVrzakJTFvHAhQAi9mpVH07P2rtOgQ1qHlj4kUWDwEJHubd7j7Ff22JnH3xJ7u
  r4dW4VlVbkhWbNULVoFVZHiUbMLdiwgToVeJE6cpt+QDs/UuCdvVLcKvIuQFjWHHz7ikzMRJ
  cnfN66WOJlO3BjeHNc27V84mzFfTPXuAIr/BM7+AQPCX9LQurlNiBdAwsDORtCsOt5aNG4u/
  SAovohMjOjlnDONB5NWLI6glfkCo/jc8UCAsmXkTyoFFzOiqnJ7EYPgUwYzOoXcsNjVSi/fy
  xmn/BLDmzJZ4YHOXWgdmr6FRKlx+rq5rEVPewBEX9LF0vKhfVCfRCPuA8ra48VoPAtmzD9/r
  C4/fC4fCfyeiUC==
}


http://www.youtube.com/watch?v=Swm01YN_NRY (http://www.youtube.com/watch?v=Swm01YN_NRY)


Title: Re: SwirlBox
Post by: kram1032 on February 12, 2013, 02:53:20 PM
that last one looks great :)
I rank it somewhere between wood age rings, thick, oily liquid and heavy thunderstorm-winds


Title: Re: SwirlBox
Post by: Alef on February 13, 2013, 04:28:54 PM
Thanks:)

(http://nocache-nocookies.digitalgott.com/gallery/13/5956_13_02_13_4_26_29.jpeg)

It would be nice to have a DE...



http://www.youtube.com/watch?v=YcAtlfwwAIk (http://www.youtube.com/watch?v=YcAtlfwwAIk)



http://vimeo.com/60480068