Logo by Fractal Ken - 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: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. April 25, 2024, 07:15:02 PM


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: Some useful formulas to implement on new mdb 3d versions?  (Read 5298 times)
0 Members and 1 Guest are viewing this topic.
Lalla
Guest
« on: August 03, 2012, 04:14:22 PM »

I've found some formulas (maybe...Grin with closed eyes) useful to implement in mdb 3d...

T(x,y)=(x+a,y+b) - traslational simmetry

- rotational simmetry

Uploaded with ImageShack.us

S(x,y)=(-x,y) - reflection simmetry

T(x,y)=(x+1,y+2)


Uploaded with ImageShack.us

- conjugate formula

Uploaded with ImageShack.us



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


Fragments of the fractal -like the tip of it


« Reply #1 on: August 03, 2012, 05:50:17 PM »

You clearly don't know what you are asking. They are all possible using existing formulas; translations, rotations, folds. They are already present in Mb, since years. Stop asking what it's already in there. Thanks.
Logged

No sweat, guardian of wisdom!
Lalla
Guest
« Reply #2 on: August 03, 2012, 06:29:16 PM »

You clearly don't know what you are asking. They are all possible using existing formulas; translations, rotations, folds. They are already present in Mb, since years. Stop asking what it's already in there. Thanks.

Ok, sorry...I don't know this...thank to explain me...
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #3 on: August 04, 2012, 10:25:43 AM »

You clearly don't know what you are asking. They are all possible using existing formulas; translations, rotations, folds. They are already present in Mb, since years. Stop asking what it's already in there. Thanks.

That was a bit rude... having a bad day, Luca?   grin
Logged

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


Fragments of the fractal -like the tip of it


« Reply #4 on: August 04, 2012, 10:49:07 AM »

Probably a low-newbie-tolerance day... Azn
Logged

No sweat, guardian of wisdom!
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #5 on: August 05, 2012, 03:19:21 PM »

She looks being from your country;)

I would stand more for this (a bitt chaotic pattern):
https://sites.google.com/site/3dfractals/baguabox

And a bitt less so for this (becouse it is brot):
https://sites.google.com/site/3dfractals/discussion
« Last Edit: August 05, 2012, 06:37:50 PM by Asdam » Logged

fractal catalisator
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #6 on: August 06, 2012, 10:22:57 AM »

behave!, seems to be settled!
Logged

---

divide and conquer - iterate and rule - chaos is No random!
taurus
Fractal Supremo
*****
Posts: 1175



profile.php?id=1339106810 @taurus_arts_66
WWW
« Reply #7 on: August 06, 2012, 09:16:34 PM »

dunno if darkbeam will still listen to me after my latest verbal attack, but i will give it a try.  grin
i kearned lately, that m3d and mandelbulber have different implementations of plane rotation ( _Rotate ). this makes negscale rotboxes completely incompatible and different looking in theese two programs (not only with identical values) and causes m3d rotboxes look much more dense and less subtle, than in bulber.
so i suggest to implement an additional marczak (buddhi) like rotation, to make some rotboxes comparable and/or portable.
i can't say much about background, but as far as i can tell the mandelbox script of fragmentarium rotates like mandelbulber, as my mandelbulber rotboxes look very similar to those in fragmentarium, at least in lower (single precision) zooms.
i'd be very pleased, if you can make that and it would bring a whole new fractal-type to m3d (trust me, it is that different!)  wink
Logged

when life offers you a lemon, get yourself some salt and tequila!
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #8 on: August 07, 2012, 04:19:19 PM »

For Asdam, I looked at your formula, it brings some discontinuity - remove that and I will think of an implementation (not do, just think! grin )

Taurus; Please report the code of Buddhi related to rotation here, so I can do a comparation. By the way, rotation is made using a matrix currently (precalculated, so can't do big manipulations), so I don't think it can be a lot different? Ever tried with _RotateBack that goes in the opposite sense? huh?

dunno if darkbeam will still listen to me after my latest verbal attack; what attack huh?

 grin
Logged

No sweat, guardian of wisdom!
taurus
Fractal Supremo
*****
Posts: 1175



profile.php?id=1339106810 @taurus_arts_66
WWW
« Reply #9 on: August 07, 2012, 11:02:13 PM »

what attack huh?

 wink
Logged

when life offers you a lemon, get yourself some salt and tequila!
taurus
Fractal Supremo
*****
Posts: 1175



profile.php?id=1339106810 @taurus_arts_66
WWW
« Reply #10 on: August 09, 2012, 02:57:07 PM »

i'd be very pleased, if you can make that and it would bring a whole new fractal-type to m3d (trust me, it is that different!)  wink
for the sake of completeness i have to admit, that this claim is wrong, because of a silly mistake i made while porting.  embarrass they are different, but not that different. i still can't say how the differences are at deeper zooms (not so easy to go to the same spot in two different programs), but in larger scales they are similar.
Logged

when life offers you a lemon, get yourself some salt and tequila!
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #11 on: August 09, 2012, 04:51:34 PM »

For Asdam, I looked at your formula, it brings some discontinuity - remove that and I will think of an implementation (not do, just think! grin )
I 'm thinking, that modificated spherefold at certain values could create discontinuaties (mess). Abox is conditional formulas, but are pretty smooth, but alsou depends on bailoy value.
Logged

fractal catalisator
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #12 on: August 10, 2012, 04:31:59 PM »

For Asdam, I looked at your formula, it brings some discontinuity - remove that and I will think of an implementation (not do, just think! grin )

Here I changed spherefold to different one, so now it is much less chaotic in messy areas. With abs function I kept possibility of negative scale Min radius. (Just noticed, formula can work without any spherefold, like when min radius =0)  I think, even smoother would get boring;) This were pretty raytracing resolution stable, moreso than my abox implementation;), but spherefold radius < 1 created mess in some areas.

Code:
Baguabox (quaternion) {

// Mandelbox alternative.
// Based on work of TGlad, Traffasel, Kali, M Benesi and LucaGen.
// By Edgar Malinovsky 25.07.2012.
// You may redistribute this algorithm, modify, derivate or use comercialy as you wish as long as you atribute proper credits.
// 10.08.2012 + smoother spherefold.

parameter real bailout;
parameter quaternion julia;
quaternion C;
real zx, zy, zz, temp, modulus, radius;
parameter real add, Min_R, Scale, lenght;
parameter int settype;


void init(void)
 {
     if (settype=="Julia Set")
    {
z = pixel;
C = julia;
    }
    else
    {
z= 0;
C= pixel;
    }

}

void loop(void)
{
zx=real(z);
zy=imag(z);
zz=part_j(z);


 //Folding by pow 8 modulus having unit circle shaped as octagon pillow.
modulus =((zx)^8 + (zy)^8+ (zz)^8)^0.125 ;

if (modulus != 0)
{
if (zx > lenght)
{
zx=-zx/modulus -add;
}
else if (zx < -lenght)
{
zx=-zx/modulus +add;
}

if (zy > lenght)
{
zy=-zy/modulus -add;
}
else if (zy < -lenght)
{
zy=-zy/modulus +add;
}

if (zz > lenght)
{
zz=-zz/modulus -add;
}
else if (zz < -lenght)
{
zz=-zz/modulus +add;
}
}

//spherefold. Similar to TGlads original, but allows negative radius.

radius =sqr(zx) + sqr(zy) + sqr(zz) ;

if (radius < abs(Min_R)  )
{
temp = Scale/Min_R;
}
else
{
temp = Scale;
}

//scaling and generating z value.

z = quaternion(zx, zy, zz, 0)* temp + C;
}
bool bailout(void)
{
return(  |z| < bailout );
}
void description(void)
{
this.title = "Baguabox";

bailout.caption = "Bailout Value";
bailout.default = 15.0;
bailout.min = 0.5;
bailout.hint = "Larger number increases fractal";

    settype.caption = "Set type";
    settype.enum = "Mandelbrot Set\nJulia Set";
    settype.default = 0;

separator.label1.caption  = "Shape depends on folding parameters and bailout.";
  add.caption = "Add value";
add.default = 0.1;

lenght.caption = "Lenght";
lenght.default = 2.0;

Min_R.caption = "Radius";
Min_R.default = 0.5;

Scale.caption = "Scale";
Scale.default = 1.5;

    julia.caption = "Julia Parameter";
    julia.default = (0.35,-0.35,2.0,0);
    julia.hint = "4th value is not used";
    julia.visible = (settype=="Julia Set");

}
}


Here is before and after, throught different colours:



This was generated using standart abox parameters, lenght =1, scale =2, Min radius=0.5. Now there are no gap.



Far outside videscreen got much less mess:



I recomend to look on this coz it should be easy to use like abox, have right amount of changable variables (IMHO 4, 5 variables would be golden mean between enought possibilities and not burdening users too much), and is pretty different from abox versions. (Actaualy these were cornerstones for this formula.) And unexpectedly cool julias.
But of corse it is time and effor consuming, much more so than basic UF compiler :smiley
Logged

fractal catalisator
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #13 on: August 10, 2012, 04:40:36 PM »

I kind of like this brot, becouse it have sexy shape at power 2


And with in power 4 it looks like fractal called breeder;)


Throught the stretching in higher powers could be becous of algebraic mistakes. Throught of corse it is much less usefull.
Logged

fractal catalisator
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #14 on: August 15, 2012, 09:26:39 PM »

Example of julia set of baguabox. Very smooth and many surfaces:

Logged

fractal catalisator
Pages: [1] 2   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
perhaps a formula worth to implement in 3d ? General Discussion cKleinhuis 1 1266 Last post July 28, 2012, 11:24:58 AM
by DarkBeam
Anyone ever implement the period 3 check as described by Stephenson? Programming saijanai 6 2023 Last post August 17, 2012, 03:39:24 PM
by Adam Majewski
How do I implement supersampling? Programming « 1 2 » Gore Motel 20 11956 Last post May 26, 2014, 03:58:06 AM
by laser blaster
Halp! I can't implement Rudy Rucker's cubic mandelbrot correctly. Programming laser blaster 3 2044 Last post May 07, 2014, 10:03:07 PM
by phtolo

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