Shop Forum More Submit  Join Login
×
:icondark-beam:
dark-beam Featured By Owner Oct 24, 2011  Student Artist
ABoxSmoothFold2 and ABoxSmoothFold are the same but one version is buggy. I don't know why it has been added, use only the one with this description ... (check it clicking on I button)


WARNING! If you use very high sharpness, I don't know what will happen (it may become
extremely slow)... But it has no sense
An Amazing Box, with Folding function modified as follows (x is each spatial coord);

xp = fix1*x**p; (fast int pow, p is forced to be > 2)
u=sgn(x)*xp;
x=x+xp*(2*Fold-x);
x=x/u;

Also radius folding is smooth (when r<0.99);

r = (x*x+y*y+z*z);
if r>0.99
r=1; // prevents fp troubles and speeds up a lot in this case
else
m=(1+minr)/2; n=(1-minr)/2; r1=(r-m)/n; rs=sgn(r1); r1=abs(r1);
rsqrt = sqrt(r1); // this slows down the convergence
rp=fix2*(rsqrt**p); (fast int pow, p is forced to be > 3)
r = rs*((rp+r1)/(rp+1) * n) + m;
endif

(then r = scale / r and is used as a multiplier for x,y,z)

This "smoothens" the folding function, replacing the "sawtooth" fold with a smooth curve
Result is very similar to standard ABox but with a bit of detail loss and "curvy" details...
Higher sharpness -> You get closer and closer to standard ABox...
Also, remember that smoothing has an interference with the scale. More smooth -> less scale
Inspired from an idea of Buddhi @ FractalForums.
Interesting results can be achieved with negative fix values (more smoothness, different look).

Luca GN 2011

The other one can be buggy

Anyway epic piece
Reply

Devious Comments

:iconhaltenny:
HalTenny Featured By Owner Oct 24, 2011
Thanks! That matches ABoxSmoothFold.
Reply
:icondark-beam:
dark-beam Featured By Owner Oct 25, 2011  Student Artist
:D Great and sorry if I disturb :blush:
Reply
:iconhaltenny:
HalTenny Featured By Owner Oct 25, 2011
Not at all! :)
Reply
Add a Comment: