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 us on facebook
 
*
Welcome, Guest. Please login or register. April 18, 2024, 09:40:47 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 ... 3 4 [5] 6 7 8   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: An old formula revised  (Read 26258 times)
0 Members and 1 Guest are viewing this topic.
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #60 on: September 27, 2012, 07:10:42 AM »

  Allright.  Added another little option to the formula.  Messed with this one earlier, didn't add it in with the other symmetry modes because I forgot.  It's "YZ Switch (-z)"... the other really nice "symmetry" mode is "YZ Switch". 

  This one (-z) has little z^2 Mandy patterns embedded in it.  

I'll attach it to this message, default setting is now the mode I just added.  

  This image is ~45 degrees from the stalk along the x-axis (the +z axis side):



This is a stalk image...  haha...


Since it's a formula file, change the file extension from ".txt" to ".cfm"  

* Mag xyz forms.txt (31.73 KB - downloaded 132 times.)
« Last Edit: September 27, 2012, 07:32:53 AM by M Benesi » Logged

hgjf2
Fractal Phenom
******
Posts: 456


« Reply #61 on: September 27, 2012, 09:06:41 AM »

A version in C# for this 3D fractal type:


* 3D_siegel_hypercomplex_by_hgjf_radiolaria.png (110.19 KB, 400x400 - viewed 604 times.)
Logged
hgjf2
Fractal Phenom
******
Posts: 456


« Reply #62 on: September 27, 2012, 09:09:19 AM »

I told that join me at this competition "Let's put theory!, let's put images!, let's put implementation!, let,s put videos!,..."
Yet wait the prises.
Logged
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #63 on: September 28, 2012, 04:15:44 AM »

  Umm... don't think that you have the correct thread.
Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #64 on: September 29, 2012, 05:55:58 AM »

So, at least for ChaosPro, I've reduced calculation times by over 30% with some formula re-writes.  Once I clean up the code, leaving a couple of legacy formulas for posterity, I'll post the new faster formulas.

  I'm using the "Switch YZ" mode instead of the negative Z "Switch YZ (-z)" mode because... well, for now it seems to be the best.  tongue stuck out  I'm sure I'll like another type some other day.  

  Here is an image of a zoom into a bulb tree hanging towards the main body, zoomed into the top of one of it's bulb trees then rotated so that the tree is right side up.  Basically, it's a bulb tree near where seahorse valley is on a 2d Mandelbrot.

  Of course, this is a z^2.  Click to enlarge... rendering a second image with another iteration (by accident actually, but I'll post it in a minute or 2).



  Here is a "shield" with an "altar" behind it.  Shape names?  



  Couple zooms into the shield, and the altar part of the shield (not the altar behind the shield in the image above- the shield has it's own towards one side):


Click to enlarge this altar, behind the shield above the small images.
« Last Edit: September 29, 2012, 07:19:58 AM by M Benesi » Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #65 on: September 29, 2012, 11:02:47 PM »

  Click to enlarge.
  First 2 are Mandy Mags...
  Mandy z^2 Mag z^2 Elephant valley, Mandy z^2 Mag z^4 Elephant valley,


  These are Mag Mandys.  Click to enbiggen-
  Mag z^4 Mandy z^2 Elephant Land, Mag z^2 Mandy z^2 Elephant Land:


  The z^2 z^2 is a lot more connected- looks a lot better on the stalk end.  Combining with the z^4 makes the elephant valley end look sort of cool though....
« Last Edit: September 29, 2012, 11:19:16 PM by M Benesi » Logged

Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #66 on: September 30, 2012, 05:08:55 PM »

Now colouring is much more easy to use. Just scroll the switches and watch the result. Probably RGB is just more natural than CMY. There are blue jeens and red vine, but no cyan jeens and magenta vine.

Default version of Mag with 4 spikes cutted at z=0. It seems like Fracmonk multipowerbrot or carlson continiued fraction function, but it needs realy big picture for a nice look and Chaos Pro a bitt optimised furthest side of fractal.

Throught I used different colouring, bcos of electric lines.
Logged

fractal catalisator
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #67 on: October 01, 2012, 03:51:56 AM »

  You should try switching and editing the palettes- it allows you much quicker (and better) manipulation of the colors.  Palette mode allows the coolest stuff- and keep in mind, if you increase iterations a lot, you might want to set the color iteration back to a higher number!  

I better find out what I should use to capture a video of me doing stuff in ChaosPro so I can create a tutorial.  

  Now, zooming into certain places on the fractal, and setting the iteration count correctly reallllly helps with the details- it will be fuzzy if the iteration count is too high.  I need to think about this a bit- I'm currently playing with the idea of porting this specific formula to fragmentarium- but have a couple other things on my plate for now.

   We need a video or 2 as well...  

  Here is the latest update to the formulas.  The top 2 formulas in the list are now "fast" in ChaosPro- I removed the trig functions and used complex numbers instead.  This is a LOT faster for integer exponents, but it still has to use trig functions for non-integer z^n.

  As always, change the .txt file extension to .cfm before dropping the formula into your compiler directory.


* Mag xyz forms.txt (40.99 KB - downloaded 143 times.)
« Last Edit: October 01, 2012, 04:42:47 AM by M Benesi » Logged

Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #68 on: October 03, 2012, 04:43:59 PM »

Palletes are superiour. But I like cosmic looks of direct RGB colouring, so I mixed them together by means of harmonic mean. From the start this was intended to be like Fractal Explorer "log counting". But since no sorce codes, not so simmilar, but FE used simmilar aprouch.

IMHO fractional powers are good if you want to animate power change, so not so great trade off;) Fragmentarium probably have one of the best raytracers, there were some photorealistic fragmaentarium fractal images, what couln't be said about Chaos Pro, just it don't works on certain machines.  

Here I have cutout at z=0 of zooms of mag with 4 spokes.

Rear end of m-set.


Side bulb zoom.


Whole julia set with julia seed =0,0,0,0. When increasing julia seed fractal tends to dissapear into some chaotic fuzzyness, maybe this have something to do that mag aren't absolutely solid like quaternions.
« Last Edit: October 03, 2012, 04:47:50 PM by Asdam » Logged

fractal catalisator
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #69 on: October 04, 2012, 01:46:19 AM »

  Asdam-  Try doing less iterations.  In other words, the initial value of 10 iterations is too many for this fractal type.

  Start at 4 iterations.  Increase to 5 iterations if you're zooming in a bit.  Go up to 6 iterations if you're zoomed in even more.

  This fractal will always be "fuzzy" if you use too many iterations- it lacks the smooth whipped cream sections of the Mandelbulb.  You will find that you get much better images. 
Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #70 on: October 05, 2012, 07:36:16 AM »

  Here is a quick animation of the formula.  Just to show a bit of it.

   <a href="http://www.youtube.com/v/Ez7Mf99lCok&rel=1&fs=1&hd=1" target="_blank">http://www.youtube.com/v/Ez7Mf99lCok&rel=1&fs=1&hd=1</a>

« Last Edit: October 06, 2012, 03:56:53 AM by M Benesi » Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #71 on: October 06, 2012, 03:54:47 AM »

  Here is some updated code.

  I'm going to post a quick non-trigonometric z^2,z^2 version (z^2 mag, z^2 mandy).  By non-trigonometric I mean algebraic- it avoids calling trig functions which increases the speed quite a bit.  

  After that, I'll post a newer, easier trig version  (a bit later).  In a while, if anyone is interested in it, I can post the complex numbers version of the formula- it is actually a LOT faster in ChaosPro as it avoids calling trig functions (converting to angle, converting back to cosine and sine, etc.).  

  Here is the z^2,z^2 version:
initialization sequence:
Code:

//I decided to use a simpler version of the mag vs. xyz formula
//  It turned out a bit nicer, and a bit quicker to calculate as well
// REMEMBER THIS IS ONLY THE z^2 version, so      !!!!   mag_exponent=2    !!!

d=(mag_exponent + mag_exponent_variable)^2;    //  mag_exponent_variable should default to 1

//  decreasing the variable makes a spikier fractal, increasing it makes it flatter
//  In my ChaosPro formula, I like setting d= mag_exponent  * 1.5   as well, for a
//  slightly more connected higher mag_exponent fractals
//  so for n= 4, d=6   I suppose we could default to:
//  d=(mag_exponent * 1.5 + mag_exponent_variable)^2  with the variable=0 if we wanted

sx= x axis pixel value
sy= y axis pixel value
sz= z axis pixel value

pixelr=x axis pixel value
if (pixelr>0)  then  { pixelr = pixelr*.5 ; }


  That's it for the initialization.  We can eliminate a few square roots below by setting sqrt(1/2), sqrt(2/3), and sqrt(1/3) in the initialization.  I just wanted to leave the formula the way it is so people can see the rotation matrices for now....  

  Here is the iteration loop:
Code:
whiskey= sqrt(2/3);      //this is our rotation for the x-z plane
tango= sqrt(1/3);

nx= sx  * whiskey - sz * tango;
sz= sx  * tango     +  sz * whiskey;
sx=nx;

whiskey=sqrt(.5); // this is our rotation for the x-y plane

nx= sx * whiskey - sy * whiskey;
sy= sx * whiskey + sy * whiskey;
sx=nx;

sx=sx^2;
sy=sy^2;
sz=sz^2;
r=sx+sy+sz;

nx= (sx+r) * (d*sx-sy-sz) / (d*sx+sy+sz) + seed;  //seed should default to -.5
ny= (sy+r) * (d*sy-sx-sz) / (d*sy+sx+sz) + seed;  // that is negative 1/2....
sz= (sz+r) * (d*sz-sx-sy) / (d*sz+sx+sy) + seed;

sx=nx;        // make sure you don't try to avoid this step!
sy=ny;       //

whiskey= sqrt(.5); //time to rotate to the mandy!!!
tango= -whiskey;   // notice the negative in this one!

nx=sx * whiskey -sy * tango;
sy=sx * tango + sy * whiskey;
sx=nx;


whiskey= sqrt(2/3);  
tango= -sqrt(1/3);   //notice the negative sqrt in this one?

nx= sx  * whiskey - sz * tango;
sz= sx  * tango    +  sz * whiskey;
sx=nx;

// time for our Mandy calculation-  I've tried all kinds, this is the one I like most
//  USE IT... IT is WAY BETTER!!@!#!@

sx2=sx^2;   // don't need the additional variable- you can just square more than once
sy2=sy^2;
sz2=sz^2;

nx=sx2-sy2-sz2;
r3=2*sx/sqrt(sy2+sz2);   //as long as sy2+sz2 != 0  of course.... :D

nz =r3*(sy2-sz2);    // NOTE THAT Y AND Z VALUES ARE SWITCHED!#!@$#!
ny =r3*2*sy*sz;      // Best for z^2... and other n=even    but for odd n you  
   //  want ny to be the first one and nz to be the second  (switch back)


sx= nx + pixelr; //  you might want to allow julia values to be added in
sy= ny; //  as well-- and have the option of leaving out "pixelr"
sz= nz; //   if only using julia values

//check bailout       sx^2+sy^2+sz^2.... etc.

  All right.  I think that's it for the z^2 z^2 version.  The multiple z^n version can wait for another time.  It's basically the formula I posted back on page 4 of this thread, with a modified initialization that really helps with the details for higher n (n>2).  

  The z^2 z^2 is really cool.  

  The complex numbers version of the formula is really cool as well, and it's FAST compared to using trig functions.  I actually wonder why people use so many trig functions- are GPUs really so optimized that the additional cycles of computation for trig functions are faster than avoiding them?



  Noticed something interesting.  You can add in the previous iterations X Value to the new iterations X Value and you get an interesting fractal as well.  Different, of course...


  Here is a z^2 with mag_exponent_variable=3, followed by part of the "flat mandy" type's elephant valley.
click to ENLARGE (especially the first one...)


  Weird idea:  You know how fractal antennas work very well, based on certain 2 dimensional fractals.  Wonder how these 3 dimensional fractals would work?  What if they absorb energy efficiently?   You know what would be nice, warping spacetime. 
« Last Edit: October 06, 2012, 07:03:59 AM by M Benesi » Logged

jehovajah
Global Moderator
Fractal Senior
******
Posts: 2749


May a trochoid in the void bring you peace


WWW
« Reply #72 on: October 06, 2012, 09:13:48 AM »

The winding of such an antenna would be a problem all of its own! Still I am fairly sure a robotic system could be set up to wind or weave a good approximation. Would need to be careful of the dipole domains created by such a winding, because they could cancel each other out and make it just a twisted lump of metal rather than a super antenna . embarrass
Logged

May a trochoid of ¥h¶h iteratively entrain your Logos Response transforming into iridescent fractals of orgasmic delight and joy, with kindness, peace and gratitude at all scales within your experience. I beg of you to enrich others as you have been enriched, in vorticose pulsations of extravagance!
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #73 on: October 06, 2012, 10:32:46 PM »

The winding of such an antenna would be a problem all of its own!  Still I am fairly sure a robotic system could be set up to wind or weave a good approximation.
  With new 3d printing technology, and CNC fabrication machinery, it's becoming easier.

Would need to be careful of the dipole domains created by such a winding, because they could cancel each other out and make it just a twisted lump of metal rather than a super antenna . embarrass
  Yeah.  It's a neat idea, although it might not work.  I'd definitely say try it before ruling out any interesting effects because of predicted canceling of signals. 

  I recently heard that some mechanical engineers proved (mathematically) that a specific piece of machinery could not work- but the machinery works. 

  In other words, a mathematical construct using known physical laws failed to work, yet the machinery works.  The same could be true for many things.
Logged

hobold
Fractal Bachius
*
Posts: 573


« Reply #74 on: October 07, 2012, 01:14:40 AM »

Weird idea:  You know how fractal antennas work very well, based on certain 2 dimensional fractals.  Wonder how these 3 dimensional fractals would work?  What if they absorb energy efficiently?   You know what would be nice, warping spacetime. 
Trees (the ordinary plant life, not the abstract specimen of computer science) distribute their leaves fractally within a volume of 3-space. They do that with a fractal support structure made of wood.

Or in other words: your intuition was is good, trees do absorb both sunlight and carbon dioxide very efficiently. smiley
Logged
Pages: 1 ... 3 4 [5] 6 7 8   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Where does THE formula come from ? Mandelbrot & Julia Set bib 5 5197 Last post January 26, 2009, 07:12:10 PM
by cKleinhuis
Formula? Theory « 1 2 » lkmitch 20 9726 Last post March 23, 2010, 06:01:56 AM
by jehovajah
carved ivory revised Mandelbulb3D Gallery GrahamSym 0 978 Last post November 28, 2011, 11:31:31 AM
by GrahamSym
Alien Waters (revised) Mandelbulb3D Gallery Tahyon 0 752 Last post July 04, 2012, 07:36:28 AM
by Tahyon
@jesse - save formula as new formula ?! feature request cKleinhuis 0 5013 Last post October 10, 2012, 05:43:14 PM
by cKleinhuis

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