Logo by Tglad - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. November 20, 2025, 11:56:27 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] 2   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: A "smooth" transition ...  (Read 5776 times)
0 Members and 1 Guest are viewing this topic.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« on: September 19, 2011, 05:16:54 PM »

 grin grin grin with my new fmla "Partly Julia on radius"

Mandelbulb3Dv17{
R.....S....O/...w....2...............1.......s1E................................
................................OaNaNaNadz1........A./..................y.2.....
................/M.0/....6.d....i.....E2.....QzIXLua2PrD/..........m/dkpXm1....U
z.....kD12../..........wz..................................u1....y1...sD...../..
.w1...sDYsAIxzzzjz1..........UAbUdisqcljMaO9c9iBOw1v41auWPX4zU2bVezzzzyDIJIzUvMS
3t17C1JzzzzvzOCphUisqclD......o1..............kD.2....sD.2kz....................
.............oAnAr1...........JRW4.wp7O.EObc/.nRW4.or7O.kVbc/.FSW4..............
..................kz.wzzz1.U..6.P....M4...EB....W....k1....F....8/...I1....UJl42
...U.qFG9yzb2zzzRYoWzz7lz16.mc..zXCc.El18XGQeGyDjvIRhrVAkz1..........2.28.kFrA0.
FWb96aAIVzvh1se7Umvxz0........../6U0.wzzz1................................E.0c..
zzzz.................................2U.8.kzzzD.................................
/6U0.wzzz1...................................2CcN/UvNP6.eeWCNq0.yRii.EJJUk1f..XR
S1.mx3CcN/UvNP6.QsLsUa3.ibhV..bTV1OK.sSq40.ly3CcN/UvNP6.MwLsUa3.ibhV.kqTV1OK.sSq
40.kz3CcN/UvNP6...EsUa3.eeWCNq0.IJ36wk8.wyLsUa3.................................
E....6....E.....I....c....kLE3aQolKS8J5Pd3aI....................................
0.......................................kz9........yzAnAnAnAnAxD..........kAnAnA
nAnszcNaNaNaNaxj........kz1.....................................................
.....................2..........0....YYPoJqNZ756ExqRZ75.........................
8.............................0E........kz9.....................................
................................................................................
................................}


* aaaaa iko.gif (94.11 KB, 1041x308 - viewed 542 times.)
« Last Edit: September 20, 2011, 05:34:43 PM by DarkBeam, Reason: PARAMETER CORRECTED as the formula is modified » Logged

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


Fragments of the fractal -like the tip of it


« Reply #1 on: September 19, 2011, 05:24:13 PM »

Another sample;
(note the strange transition zone!!!)

Mandelbulb3Dv17{
R.....S....O/...w....2....E/KqYYNROA.biyZzNhBY4E9N42gFOFdwPI8zmhUgl/.TvKkEnUNvzj
................................T6fbNzPGEz1........Y./..................y.2.....
................/M.0/....6Ew....P0....E2.....2pMNlXOY5tD/..........m/dkpXm1....U
z.....kD12../..........wz..................................u1....y1...sD...../..
.w1...sDjSGquc4tFy1..........El5GYIXEpfjuAUKLnkiouf40OIV7oIWz2M3rhGJCZsjcOGjZoTi
ou1d4ON9JtIWzUA9bAM0BZsD......Y1..............kD.2....sD.2kz....................
.............oAnAr1...........JRW4.wp7O.EObc/.nRW4.or7O.kVbc/.FSW4..............
..................kz.wzzz1.U..6.P....M4...EB....W....k1....F....8/...I1....UJl42
...U.qFG9yzb2zzzRYoWzz7lz16.mc..zXCc.El18XGQeGyDjvIRhrVAkz1..........2.28.kFrA0.
FWb96aAIVzvh1se7Umvxz0........../6U0.wzzz1................................E.0c..
zzzz.................................2U.8.kzzzD.................................
/6U0.wzzz1...................................2CcN/UvNP6.eeWCNq0.yRii.EJJUk1f..XR
S1.mx3CcN/UvNP6.QsLsUa3.ibhV..bTV1OK.sSq40.ly3CcN/UvNP6.MwLsUa3.ibhV.kqTV1OK.sSq
40.kz3CcN/UvNP6...EsUa3.eeWCNq0.IJ36wk8.wyLsUa3.................................
E....6....E.....I....c....kLE3aQolKS8J5Pd3aI....................................
0.......................................6.A........6.BnAnAnAnAyD................
...0./........0k........kz1.....................................................
.....................2...../....1....2IPVdLOiR460x4S.65.........................
.Qk0...........................E........Uz1........wz...........................
................................................................................
................................}



* aaaaa iko.gif (129.43 KB, 1041x357 - viewed 380 times.)
« Last Edit: September 20, 2011, 05:35:32 PM by DarkBeam, Reason: PARAMETER CORRECTED as the formula is modified » Logged

No sweat, guardian of wisdom!
knighty
Fractal Iambus
***
Posts: 819


« Reply #2 on: September 19, 2011, 08:22:58 PM »

Very nice finding.
Have you tried other (potentially arbitrary) functions for blending mandel and julia c values?
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #3 on: September 19, 2011, 09:25:52 PM »

Any function is good. Two requisites are necessary btw

f must be f(x,y,z) or at least of a subset of 3d space
max(f) must be 1, while min(f) must be 0
possibly in big areas f should be uniformly 0 or 1 because transition areas look a bit weird

that's all... smiley

The procedure itself is coded in the m3f file, open it to see
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #4 on: September 19, 2011, 11:28:55 PM »

Looks cool, interpolating between those vals is of course a good idea.

In my formula i let those offsets of the julia vals stay between pixel coordinates and adding constants, so your formula always interpolates correct between julia and the real non-julia version, mine avoids to much stretched regions.

However, interpolating based on the position might have some good potential for more  smiley

(and thx for the formula!)
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #5 on: September 20, 2011, 05:38:10 PM »

Okay, as I corrected some details in the formula also the params are now okay. PLEASE download again the formula! Now it is much more useful & powerful.

the source code (for knighty & friends? wink )

Code:
(x' is x - xCenter etc)
R = sqrt(x'*x'+y'*y'+z'*z')/Rmax;
if inside==1 {
// simple mode, out Mandel and in Julia.
if R < 1 {
  R -= Speed
  if R > 0 {      // Transition
    // never get here if R==0 or you get in trouble!...
    R /= (1-Speed);
    Cx = (1-R) * Sx + R * Cx;
    Cy = (1-R) * Sy + R * Cy;
    Cz = (1-R) * Sz + R * Cz;
    rc = rec*(1-R);
    x -= rc*xC;
    y -= rc*yC;
    z -= rc*zC;
  } else {      // inside must be Julia
    rc = rec;
    Cx = Sx;    Cy = Sy;    Cz = Sz;
    x -= rc*xC; y -= rc*yC; z -= rc*zC; // implemented with a GOTO
}}  // outside is left untouched
} else {
// alternate mode, out Julia and in Mandel. Longer formula
if R < 1 {
  R -= Speed
  if R > 0 {      // Transition
    // never get here if R==0 or you get in trouble!...
    R /= (1-Speed);
    Cx = (1-R) * (Cx-rec*xC) + R * Sx;
    Cy = (1-R) * (Cy-rec*yC) + R * Sy;
    Cz = (1-R) * (Cz-rec*zC) + R * Sz;
    rc = rec*(1-R); // implemented with a GOTO
    x -= rc*xC;
    y -= rc*yC;
    z -= rc*zC;
  } else {      // inside must be shifted Mset
    Cx = Cx-rec*xC;
    Cy = Cy-rec*yC;
    Cz = Cz-rec*zC;
    rc = rec; // implemented with a GOTO
    x -= rc*xC; y -= rc*yC; z -= rc*zC;
}} else {   // (R>=1 is outside)
  // outside must be unshifted Julia with given seed!
  Cx = Sx;
  Cy = Sy;
  Cz = Sz;
}

} // end

Logged

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


Fragments of the fractal -like the tip of it


« Reply #6 on: September 20, 2011, 05:44:11 PM »

Test param with new recenter feature; an Abox with a big hole and a Julia surprise afro tease


Code:
Mandelbulb3Dv17{
R.....S....O/...w....2.....Pzvsb0nQA.jW9bwmE1l4EH9Zzy7GytzvWNGiOWJtjzG9SoM1Bjw.k
................................gAY93cAPGz1........Y./..................y.2.....
................/M.0/....6.V/...O0....E2.....6utp4VMWysD/..........m/dkpXm1....U
z.UaNadD12../..........wz..................................u1....y1...sD...../..
.w1...sDwCv1HZRL4y1/i1SdJAZgyGsd78czSNsjM41QRifCZr9DEuk1W7uXzkhkwEUAebfjlYTO2ujL
4y1/i1SdJAZgyMLGj2JqRNsD......Y2..............kD.2....sD.2kz0...................
.............oAnAr1...........JRW4.wp7O.EObc/.nRW4.or7O.kVbc/.FSW4..............
..................kz.wzzz1.U..6.P....M4...EB....W....k1....F....8/...I1....UJl42
...U.qFG9yzb2zzzRYoWzz7lz16.mc..zXCc.El18XGQeGyDjvIRhrVAkz1..........2.28.kFrA0.
FWb96aAIVzvh1se7Umvxz0........../6U0.wzzz1................................E.0c..
zzzz.................................2U.8.kzzzD.................................
/6U0.wzzz1...................................2CcN/UvNP6.eeWCNq0.yRii.EJJUk1f..XR
S1.mx3CcN/UvNP6.QsLsUa3.ibhV..bTV1OK.sSq40.ly3CcN/UvNP6.MwLsUa3.ibhV.kqTV1OK.sSq
40.kz3CcN/UvNP6...EsUa3.eeWCNq0.IJ36wk8.wyLsUa3.................................
E....6....E.....I....c....kLE3aQolKS8J5Pd3aI....................................
0.......................................6.A........6.dNaNaNaNayD................
...0.1........0E........kz1........wz0..........................................
.....................2...../....1....2IPVdLOiR460x4S.65.........................
.Qk0...........................E........Uz1........wz...........................
................................................................................
................................}
« Last Edit: September 20, 2011, 05:45:52 PM by DarkBeam » Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #7 on: September 20, 2011, 06:07:41 PM »

You are to fast for me  wink  ...

My gif example was not really good, did not recenter the bulb, the whole formula i used is:

  xt = Px - X_sphere
  yt = Py - Y_sphere
  zt = Pz - Z_sphere
  r = Sqrt(Sqr(xt) + Sqr(yt) + Sqr(zt)) - Radius
  if r > 0 {
    m = r / (r + Radius)
    Cx = Cx + xt * m
    Cy = Cy + yt * m
    Cz = Cz + zt * m
  }

With julia mode turned on.

But if julia turned off some weird boxes are also possible (have not the time to make better discoveries yet):
(ps: the interpolation trick would be also very nice to make a 'SmoothBulbox' formula to get rid of the discontinuities)



* testABoxpartlysphere.jpg (223.05 KB, 800x650 - viewed 326 times.)
« Last Edit: September 21, 2011, 01:04:19 PM by Jesse » Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #8 on: September 20, 2011, 08:45:56 PM »

Don't mix all ... My formula works with jmode off only wink

And I don't understand what is your last image, what is? cheesy
Logged

No sweat, guardian of wisdom!
knighty
Fractal Iambus
***
Posts: 819


« Reply #9 on: September 20, 2011, 09:50:19 PM »

the source code (for knighty & friends? wink )
Thank you!  grin
It's amazing that the distance estimation works very well. What about using an arbitrary function as seed value (C=F(x,y,z)) even a fractal one (C=Fn(x,y,z))?  crazy
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #10 on: September 20, 2011, 10:09:05 PM »

Well until now in Mandelbulb de worked very well...

Try to replace R expression with

R=max(x,y,z)

to obtain a cubic slice (well, I think that it works cheesy not tried for now!)

I explained that you must force F to belong to the Closed interval [0,1]. and I think that very strange funcs may not work that well... because fractals exist in relatively small space regions. well but it may be funny to see a menger sponge fusion heheh grin
Logged

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


Fragments of the fractal -like the tip of it


« Reply #11 on: September 20, 2011, 10:17:31 PM »

Reading again your question... Actually it is possible!

fmla 1. menger, 30 iters.
fmla 2. flip c-xyz
fmla 3. (check repeat from here!) Anything ya like... cheesy

Have fun!
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #12 on: September 20, 2011, 10:32:36 PM »

Don't mix all ... My formula works with jmode off only wink

Yep, it was only related to my simple formula.
Sorry for my ignorance, i thought this thread was a follow-up from the custom formulas thing (or wherever the part(l)yjulia thread started).
 wink

To turn partly the Julia on is of course ok too, would make even more sense if you would not have the pixelpos.

Quote
And I don't understand what is your last image, what is? cheesy

A -1.5 Box with my simple formula as pretransform, dont have the exact parameters here.. can tell tomorrow
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #13 on: September 20, 2011, 11:14:24 PM »

Was also wondering what are the symbols you used instead of ebx ecx edx, but I have never seen those before sad I am so ignorant wink

I meant... Somebody may be confused if we use different styles cheesy

Anyway. I prefer to use old style (ecx edx ebx) 'cause it allows edventually to combine more than one pretransform with ease
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #14 on: September 21, 2011, 12:03:01 AM »

Was also wondering what are the symbols you used instead of ebx ecx edx, but I have never seen those before sad I am so ignorant wink

I meant... Somebody may be confused if we use different styles cheesy

Are we?  Don't think so  huh?

Guess Z -> Sqr(Z) + C is well known, so i use Cx, Cy, Cz for C and instead of Zx, Zy and Zz i use x,y,z(,w) directly.
Where C can be the pixelpos to be calculated or the Julia seed if in julia mode.
If i want to use explicitly the pixelpos, i use Px, Py and Pz instead.

All other temporary variables are more or less freely choosen, but the above ones i try to use consistently.


Quote
Anyway. I prefer to use old style (ecx edx ebx) 'cause it allows edventually to combine more than one pretransform with ease

I think even i would be confused with this style, maybe if we share some secrets  wink
Logged
Pages: [1] 2   Go Down
  Print  
 
Jump to:  


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