Logo by Pauldelbrot - 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. April 18, 2024, 08:57:58 AM


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: Twistbox - spiralling -1 scale box variant  (Read 6918 times)
0 Members and 1 Guest are viewing this topic.
pupukuusikko
Alien
***
Posts: 35


WWW
« on: January 17, 2017, 11:06:19 PM »

I found an interesting addition to the already versatile scale -1 box scene.

Formula is very simple, normal -1 box with swapping of the signs of x and z (inspired by josleys's kleinian and trafassels following work).
Still, the effect with suitable folding (fold>1) and julia coordinates is quite unique, with overwhelmingly abundant spirals wink
The code is below, full frag is also attached, though DE would need some tuning.

Code:

float  minibox(vec3 z)
{
vec3 pos = z;
float DF = 1.0;
for (int i = 0; i < Box_Iterations ; i++)
{
z.xyz = clamp(z.xyz, -fold, fold)*2. - z.xyz;
float r =dot2(z);
z/=-r;
DF/= r;
z.xz*=-1.;
z+=(Julia ? JuliaC : pos);
orbitTrap = min(orbitTrap, abs(vec4(z,dot(z,z))));
}
float r = length(z); //(dot2(z));
return 0.2*sqrt(r)/DF;
}










* spiralbox.frag (10.14 KB - downloaded 234 times.)
« Last Edit: January 22, 2017, 02:41:20 PM by pupukuusikko, Reason: added bailout and adjusted DE in the frag » Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: January 18, 2017, 12:12:36 AM »

Tried already the dwsel crazy mod folds?
I moved the topic to the appropriate section too
http://www.fractalforums.com/amazing-box-amazing-surf-and-variations/kaliset-plus-boxfold-nice-new-2d-fractal/15/
Logged

No sweat, guardian of wisdom!
Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #2 on: January 18, 2017, 01:10:12 PM »

we have hyperactive fractal developer for Frag  grin  joy
Logged

pupukuusikko
Alien
***
Posts: 35


WWW
« Reply #3 on: January 22, 2017, 10:39:13 AM »

we have hyperactive fractal developer for Frag  grin  joy

Nah, just some childish excitement of a noob, it will pass quickly wink

@luca: thanks for the relevant link, I might explore the foldings some time, but
the current formula seems nice and continuous with the default boxfold too.
Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #4 on: January 22, 2017, 11:57:41 AM »

please look at the kleinian other topics. I cannot remove the separation line...
Do you know some workaround?
Should I add a divergent bailout? ...
Logged

No sweat, guardian of wisdom!
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #5 on: January 22, 2017, 11:59:47 AM »

Code:

float  minibox(vec3 z)
{
vec3 pos = z;
float DF = 1.0;
for (int i = 0; i < Box_Iterations ; i++)
{
z.xyz = clamp(z.xyz, -fold, fold)*2. - z.xyz;
float r =dot2(z);
z/=-r;
DF/= r;
z.xz*=-1.;
z+=(Julia ? JuliaC : pos);
orbitTrap = min(orbitTrap, abs(vec4(z,dot(z,z))));
}
float r = length(z); //(dot2(z));
return 0.2*sqrt(r)/DF;
}

Also here you definitely should check if R is > 1e20 or < 1e-20 to avoid numerical trouble...
Logged

No sweat, guardian of wisdom!
Sabine
Fractal Fertilizer
*****
Posts: 373



WWW
« Reply #6 on: January 31, 2017, 01:14:19 PM »

Love this formula, great fun, Pupukuusikko, thank you!



* SpiralboxTest1.zip (17.26 KB - downloaded 216 times.)
« Last Edit: February 03, 2017, 02:00:16 PM by Sabine » Logged

sabine62.deviantart.com
Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #7 on: January 31, 2017, 02:32:19 PM »

Super!  wink
Logged

Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #8 on: February 07, 2017, 05:39:06 PM »

very slow  cry

Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #9 on: February 08, 2017, 06:54:53 PM »

Correct me if I am wrong. This is Buddhi's Amazing box, with a rotation of (180, 180, 0). In MB3D you should get it that way (use ABoxPlatinum).
Johan/Kraftwerk - try plsss help thank you post swing
Logged

No sweat, guardian of wisdom!
pupukuusikko
Alien
***
Posts: 35


WWW
« Reply #10 on: February 08, 2017, 09:03:42 PM »

Correct me if I am wrong. This is Buddhi's Amazing box, with a rotation of (180, 180, 0). In MB3D you should get it that way (use ABoxPlatinum).
Johan/Kraftwerk - try plsss help thank you post swing

I tried it without success. There is probably a difference in ballfold part?

my formula has just unconditional p.xyz/=r, whereas abox in mb3d has

if rr < sqr(Min_R) then
   m = Scale/sqr(Min_R)
else if rr < 1 then
   m = Scale/rr
else m = Scale
..
p.xyz*=m


Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #11 on: February 08, 2017, 09:59:32 PM »

Sorry I did not notice sad
Logged

No sweat, guardian of wisdom!
mclarekin
Fractal Senior
******
Posts: 1739



« Reply #12 on: February 09, 2017, 02:56:10 AM »

My two cents. It looks like buddhis mandebox with a variation to the DE calc. 

In the Mandelbox, the Fixed Radius and Minimum Radius  (now called maxR2 and minR2) are variables.  We  set  maxR2 to very big number and minR2 to zero  and it is pseudo unconditional. ( i think??)
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Simple menger variant Images Showcase (Rate My Fractal) Lee Oliver 0 1150 Last post September 16, 2010, 10:15:05 PM
by Lee Oliver
Mandelbox Variant 21 (new) Theories & Research « 1 2 » trafassel 26 6851 Last post August 04, 2011, 10:50:27 PM
by trafassel
Help with the burning ship 3d variant Theory pierre 10 2588 Last post December 16, 2012, 10:00:22 AM
by DarkBeam
spirogenesis mandelbrot variant Movies Showcase (Rate My Movie) teamfresh 0 1480 Last post November 19, 2011, 09:31:10 PM
by teamfresh
Mandelbulb Variant Theory Kali 12 6946 Last post February 25, 2012, 10:23:17 PM
by M Benesi

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 25 queries. (Pretty URLs adds 0.007s, 2q)