Logo by Dinkydau - 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: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. October 01, 2018, 06:38:56 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: SuperFormula Colorings...  (Read 2540 times)
0 Members and 1 Guest are viewing this topic.
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« on: February 03, 2007, 02:39:28 PM »

Hi all, look i have used the Orbit Traps coloring with SuperShape Formula, to produce these images with mutatorkammer:



Logged

---

divide and conquer - iterate and rule - chaos is No random!
Nahee_Enterprises
World Renowned
Fractal Senior
******
Posts: 2250


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #1 on: February 03, 2007, 04:03:56 PM »

Christian Kleinhuis (Trifox) wrote:
>
>    Hi all, look i have used the Orbit Traps coloring with SuperShape Formula,
>    to produce these images with mutatorkammer:

Hey there!!  Have not downloaded your most recent version of Mutatorkammer, which you have made available, and so I am wondering if these options are in the latest version or is this something new you have added in the past few hours??

Hopefully I will have some time over the next few days to get the latest version and do some exploring of my own.     :-)

Logged

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


formerly known as 'Trifox'


WWW
« Reply #2 on: February 03, 2007, 04:55:46 PM »

There has been a minor update, the Superformula Implementation did not work properly,
i am collecting some formulas to include as example workspaces, check for the latest download 0.61

i know the program lacks documentation, and i need help on that, i will produce some more tutorials
on how to build interesting formulas

 grin

here is a "short" description on how to do Orbit Traps Coloring

basically this is done with the new iteration function ITERATECOL,

Short explanaition of the Iteration formula of Mutatorkammer

ITERATE(par1,par2)

Iterate function takes an initialisator for $Z variable ( par1 )
par2 is the formula actually taken for iteration, so for example the mandelbrot formula is
ITERATE(#0,ADD(POW($Z,#2),$PIXEL)))

this should look familar to fractal nerds wink

ok, then Mutatorkammer has a the possibility to make alternating fractals, this is done
with the ALTERNATE Function
ALTERNATE(par1,par2,par3,[,par4,par5...parN])

par1=initialisator for $Z variable
at each iteration step formula par1,par2 and so on is switched

for example an alternating mandelbrot would be done with the following formula:
ITERATE(#0,ADD(POW($Z,#2),$PIXEL)),ADD(POW($Z,#3),$PIXEL)))

switching a z^2 and a z^3 mandelbrot fractal in each iteration

ok folks, now it is getting more interesting
i come to the conclusion that just offering an iteration function is not enough, so i incporporated
the ITERATECOL function,

ITERATECOL(par1,par2,par3)

par1 is still the initialisator
par2 is a function to evaluate each step, this is known as the coloring methods known in popular fractal programs
the return value for the second parameter is set to the $W variable
par3 is the  function wich gets iterated for $Z

ok, and now the method on how to implement orbit traps coloring with these functions


Orbit Trap Coloring with Mutatorkammer
the orbit trap coloring method is based on checking the $Z variable for a lowest distance to a generator function, each iteration step,


Step 1 Take the standard mandelbrot iteration function from above

1 - ITERATE(#0,ADD(POW($Z,#2),$PIXEL)))

Now we need to initialise the $w variable, this is done with the
SETW2(par1,par2)
Function , this function takes a value which will be set to var $W ( par1) and a return value par2
further on we use the ITERATECOL function

2. ITERATECOL(SETW2(#1000,#0),MINABS($Z,$W),ADD(POW($Z,#2),$PIXEL)))

so, what have we done here ? we initialise $w with a big enough value ( 1000 ) initialise the $Z value with #0
the second parameter is the MINABS($Z,$W) part, this is also known as point coloring, making big blobs on the fractal

At last we have to tell that we want to use the $W parameter as colorthis is done with the GETW function, it simply evaluates its
parameter, and returns the current value of variable $W
3. GETW(ITERATECOL(SETW2(#1000,#0),MINABS($Z,$W),ADD(POW($Z,#2),$PIXEL))))

so, now is a good time to save the function in the library, i will now talk on how to further modify the function

the interesting part of the funtion is the MINABS($Z,$W) part, first modification is the center, if we write
MINABS(ADD($Z,0),$W) we simply have the possibility to move the center of the orbit trap, and now we
can incorporate any function build into mutatorkammer to change the trap shape

MINABS(SPIRAL(ADD($Z,0))

would make some nice lines,

the pictures on these pages are done with a trap shape formula like this one
MINABS(SUPER(ADD($Z,0),#1#1,#2#2,#3#3))

the super function is basically an implementation of the Superformula
http://local.wasp.uwa.edu.au/~pbourke/surfaces_curves/supershape/


so, the formula wich created these images looked like this:

GETW(ITERATECOL(SETW2(#1000,#0),MINABS(MINABS(SUPER(ADD($Z,0),#1#1,#2#2,#3#3)),$W),ADD(POW($Z,#2),$PIXEL))))


After that the value of $W is mapped to a color with the Voronoi Method, a method to color 2dimensional values, as Complex numbers are!

You can edit formulas in mutatorkammer in the Single Image Tree View, you can drag and drop formula nodes
to anywhere else in the tree, and make new formulas with RIGHT-CLICK!

now i go and include a workspace which contains the above described coloring method!

i will post the update here again!

« Last Edit: February 03, 2007, 05:31:31 PM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: February 03, 2007, 05:26:49 PM »

ok, i have set up the current download 0.61, featuring an additional workspace with the coloring method
described above:

Download Mutatorkammer v0.61
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« Reply #4 on: February 03, 2007, 05:54:03 PM »

This program is evolving so fast I think you may wish to consider a means to import my old libraries into the new versions!

I can drag and drop the formulas from previous versions (provided I don't overwrite the old version!) by opening the old and the new together, but importing a whole library might be nice.

I have got to make time to help with your English Documentation!  I play with this program more than any other besides Chaoscope, so I owe it to you!

I may have a trick or two to contribute for working with Photos too.  We'll see.

Great Work!

This tutorial you just posted helps quite a lot.

I hope to get more active here again soon.

Peace.
 
Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
Nahee_Enterprises
World Renowned
Fractal Senior
******
Posts: 2250


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #5 on: February 03, 2007, 06:00:49 PM »

Christian Kleinhuis (Trifox) wrote:
>
>    ok, i have set up the current download 0.61, featuring an
>    additional workspace with the coloring method...

Great !!!   smiley

Am now going to get this latest download to give it a whirl.    wink

Thanks for all the work you have been putting into your program.  And I have spread the word about MutatorKammer to a few other Lists and Forums.

Logged

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


formerly known as 'Trifox'


WWW
« Reply #6 on: February 03, 2007, 06:04:39 PM »

? Problem with importing old libraries !

Hi Sokratease, my first real user !

have you gotten the planned milestones list ?
0.65 Extend voronoi region to infinity ( meaning that the voronoi graph you create supports an range for real AND imaginary parts from -infinity to +infinity)
Include Layer Editor in v0.7
Include Formula Editor in v0.8
Web Sharing of Formulas in v0.9
Help/Documentation and Examples in v1.0

Ok, now to the problem with your old formula files,

Currently each new installation overwrites existing Library Files !

BUT, the libraries have not changed since the first version, so, to easily import your old library files to
the programm, you should consider the following :

The Library files are stored in .xml files in INSTALLDIR/LIBRARY/filename.xml

So, the programm overwrites at each new installation the following library files:
 SetOutPath $INSTDIR\LIBRARY\Base
\LIBRARY\Base\Basics.xml"
\LIBRARY\Base\Fractals.xml"
\LIBRARY\Base\Flame.xml"
\LIBRARY\Base\Alternating Fractals.xml"
\LIBRARY\Imagefun.xml"
\LIBRARY\Example_Set_2.xml"
\LIBRARY\Examples_1.xml"

Each of this file gets overwritten, BUT, you can simply rename the files on disk,
e.g. you have saved all your own formulas in the Basics.xml file, simply locate it on your harddisk
and rename it to MyFormulas.xml, a new installation will not touch this file, so all your saved
formulas keep the same, it is not suggested that you abuse these delivered library files with your own
formulas, because i want to put special functions and examples in these files

ok, i hope this helps a bit, what do you mean by importing a whole library ?
you want to merge 2 library folders ?

anyhow, the library gets a bit reworked in next releases, so that different
locations can be saved for a single formula, and naming of formulas with author, comments and creation date,
this will all be done for future WEB Sharing of formulas and locations.

@paul : thank you for spreading the word! With version 0.6 i am quite happy, because i got rid of the old coloring methods,
and overall speed improvements, further modifications to the color palette ( infinity, weighted colors ) will be straightforward
and downwards compatible.

@sockratease: have you played around with the import animation function ? if you choose a image sequence ( e.g. from a previous render )
by filename, e.g. filename00000.jpg the program checks for sequences, if then rendered as movie, the program loads a new
image each time a frame changes, you can even use smaller animations, e.g. small loops with 50 frames, the program then repeats the
sequence over and over when rendering the sequence ...
« Last Edit: February 03, 2007, 06:13:50 PM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« Reply #7 on: February 03, 2007, 06:12:44 PM »

I think I misused the words Library and Formula!

I had a few saved items that were more image twisting, and wanted to work on them in the new version, but could not reproduce the effects by setting the image.  So I just opened the old version, and dragged the formula into the new version's window, and it stayed!

I always rename the old Mutatorkammer folders so I have everything I worked on previously intact, and nothing gets overwritten. 

Thanks for the tips about the xml files! It never occurred to me to rename those.

I'm still learning how new programming works...  I only recently made my first computer upgrade in over 20 years!

A lot has changed.
Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #8 on: February 03, 2007, 06:16:47 PM »

ok, so, importing of formulas shouldn't be a problem, rename the files, and copy them to the current version of the mutatorkammer LIBRARY folder smiley

the management of the library is quite messy at the moment, but those .xml files contain a bunch of formulas, the directory structure
is also read from the filesystem, you could make a folder MyFormulas in the Library folder, e.g.

INSTALLDIR/LIBRARY/MyFormulas/

and then put all you .xml files in there, so new installations of the program do not mess up your current formulas, btw. i am quite interrested in your formulas,
would be great if you could send me some of your work wink
« Last Edit: February 03, 2007, 06:20:18 PM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #9 on: February 03, 2007, 06:28:50 PM »

and, have you seen my TileAble Images collection made with the latest version of mutatorkammer?

Give them a try as tile able Desktop Backgrounds, you will see, be sure to set it to Tile instead of Stretch!

watch gallery of Tileable Wallpapers

Some examples from the gallery





« Last Edit: February 03, 2007, 06:31:53 PM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« Reply #10 on: February 03, 2007, 06:31:30 PM »

btw. i am quite interrested in your formulas,
would be great if you could send me some of your work wink


Thanks, but most of what I do is playing with images, and as you have seen...   They are quit dependent on having the correct image set in the program!

The same distortions that look great on one image look horrible on another!

Look at the "Mickey Mouse" I posted HERE: http://www.fractalforums.com/index.php?topic=473.msg2747#new
 and at your own forum!  That formula ONLY looks good with that image set!  Set another image and it is an ugly mess.

But I do have great fun playing with your program anyhow!

If you want any, I'll send them. But I don't have much "pure" fractal art from Mutatorkammer.  Just a lot of "Image Fun" and some nice tiles.
Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
dentaku2
Guest
« Reply #11 on: February 03, 2007, 09:12:51 PM »

Wow, these orbit trap coloring algorithms look sexy! I have to dive into this, too ...  shocked  Any algorithms available?
« Last Edit: February 03, 2007, 09:15:00 PM by dentaku2 » Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #12 on: February 03, 2007, 10:58:03 PM »

Wow, these orbit trap coloring algorithms look sexy! I have to dive into this, too ...  shocked  Any algorithms available?

The best sources of algorithms I know for colourings based on orbit trapping are the free colouring formulas from the ultrafractal formula database:

http://formulas.ultrafractal.com/

The colouring formula files are the "*.ucl" ones - they're just text files in disguise and I don't think you'll have much trouble following how they work (basically the "loop" section gets passed the "z" value from the main fractal formula on each iteration).
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #13 on: February 03, 2007, 11:28:20 PM »

@dentaku: yes orbit trap coloring is my favorite one!!! And the best is it works fine for inside AND outside the divergent parts of the fractal

i agree for coloring reference to look into ultrafractal formulas, they are sometimes a bit overcrowded
with options and stuff, but the best source to look for fractal algorithms and formulas !

ultrafractal description:
http://www.ultrafractal.com/help/index.html?/help/coloring/standard/orbittraps.html

it works as described above, you need a function, the absolute function will do fine for the first tries,
simply initialise a mindist value with a big value e.g. 1

so, now at each iteration step you check if |z|<mindist if so, then mindist becomes |z|

at the end of the iteration you can use the mindist value as color index, but as stated before, the interesting
part is the distance function, taking simply |z| is not nice enough, lookin into ultrafractal formula files,
you can see, that ring trapping is done with

if abs(abs(z) - diameter)<mindist then mindist = abs(abs(z) - diameter)
with diameter a real value

it can be much fun exploring the formulas used here, as said before, the images at the top of
this posting are done using the Super Shape Formula
http://local.wasp.uwa.edu.au/~pbourke/surfaces_curves/supershape/


here is how i calculate the super function for a complex number:
as you can see, the supershape needs 6 additional parameters

have fun!
Code:
// The super Shape Function 
// as a Transformation of a 2d Point - Excerpt from Mutatorkammer SUPER Function !

// Description:
// the supershape function in 2d normaly gives a curve
// in 2d space, meaning, only one value from -PI to +PI generates the shape
// this function transforms a point, calculating the length and the angle of the current
// pixel as input to the function, the returned value is then scaled to original length
//
// by the way: this formula would also do fine if used in the nonlinear transformations Apophysis uses!
//
// c.Kleinhuis 2007 - use at your own risk ! - but use it freely !
//

double super(double theta,double a,double b,double n1,double n2,double n3,double m){
double one= pow( fabs(cos(m*theta/4)/a),n2);
double two= pow( fabs(sin(m*theta/4)/b),n3);
return pow((one+two),-1/n1);
}

// Parameter x is the point you want to transform
// the parameters y,z and w are the 6 values for the supershape formula,
// taking real and imaginary parts from them gives us the 6 values we need!
// be sure to read http://local.wasp.uwa.edu.au/~pbourke/surfaces_curves/supershape/
// for an explanation of the values

// the last parameter (imaginary part of w) is the amount of angular repeats, setting this
// to a integer number gives you spikes - the other parameters are too hard to explain ;)
// just play around  ..
// MyComplex calc(MyComplex x,MyComplex y,MyComplex z,MyComplex w )
{
double a=std::real(y);
        double b=std::imag(y);
        double n1=std::real(z);
        double n2=std::imag(z);
        double n3=std::real(w);
        double m=std::imag(w);
        double theta=atan2(std::imag(x),std::real(x));
        double l=sqrt(std::real(x)*std::real(x)+std::imag(x)*std::imag(x));
        double res=super(theta,a,b,n1,n2,n3,m);
        return MyComplex( l*res*cos(theta), l*res*sin(theta)  );
}

« Last Edit: February 04, 2007, 01:30:58 AM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #14 on: February 05, 2007, 12:59:11 AM »

small but effective update:

v0.62 Direct Palette Update, without Re-Rendering the Formula
Download

http://fractalmovies.com/index.php?option=com_gallery2&Itemid=3&g2_itemId=756

http://fractalmovies.com/index.php?option=com_gallery2&Itemid=3&g2_itemId=753
« Last Edit: February 05, 2007, 01:01:41 AM by Trifox » Logged

---

divide and conquer - iterate and rule - chaos is No random!
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.548 seconds with 23 queries. (Pretty URLs adds 0.056s, 2q)