Logo by stereoman - 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. January 09, 2026, 10:47:23 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 ... 4 5 [6] 7 8 9   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: Very simple formula for fractal patterns  (Read 55118 times)
0 Members and 1 Guest are viewing this topic.
lkmitch
Fractal Lover
**
Posts: 238



« Reply #75 on: May 16, 2011, 04:28:07 PM »

Can you give me another tip on how this coloring works?

Keeping track of the average imag(z)/real(z) is easy enough.  Total imag(z)/real(z) during the iterations, and then divide total by the iteration count after all the iterations for the pixel have been calculated.

How do you then index a color palette entry for the resulting average floating point value?  For the curent color methods I use colval=trunc(avmag*colscale)mod 255 to get the floating point value into the 0-255 color palette range, but when using the imag(z)/real(z) value I am not getting those awesome appolonian-like shapes you are?  The colscale is needed (I found) otherwise if you have a very smooth palette, you don't see all the details.

Thanks for any tips.

Jason.

Hi Jason,

It's simply the arithmetic mean of imag(z)/real(z), over all of the iterations.  One "trick" is the clamping: Ultra Fractal clamps negative values to 0 and I (in this image, not in the coloring) clamp values larger than 1 to 1.  Values between 0 and 1 are mapped to a ramp between white and black.  But I see that you've got it figured out already.  :-)

Kerry
Logged
Softology
Conqueror
*******
Posts: 120


« Reply #76 on: May 17, 2011, 10:32:00 AM »

Softology, Reply #73 looks like a solution of a special circle packing problem.

The are some sphere packing fractal ideas (i.e. some indra pearls), but most with a complicatd generation algorithms.


Cool finding,

Trafassel


Thanks, it was Kerry that found it.  The julia coords just happen to have that sphere packing result.  The rest of the julia sets don't seem to have the same patterns.  Still a very cool find.

I have Indra's Pearls on my to read pile to implement one of these days.

Jason.
Logged
fracmonk
Fractal Fertilizer
*****
Posts: 356


« Reply #77 on: May 17, 2011, 04:52:44 PM »

Really fantastic renders, Kali!  And growing fast!  Kudos!

I'm going to try a FractInt implementation, since I'm so used to doing that...(& I'm old & in the way...)... 1st chance I get...

Later!
Logged
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« Reply #78 on: May 20, 2011, 05:30:27 PM »

The corresponding video to reply #64 with changing julia parameters.

<a href="http://www.youtube.com/v/1q45CN-3SuA&rel=1&fs=1&hd=1" target="_blank">http://www.youtube.com/v/1q45CN-3SuA&rel=1&fs=1&hd=1</a>
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #79 on: May 20, 2011, 07:01:57 PM »

Nice and interesting video, Per! thanks.

PS: I'll be trying the new version of Gestaltlupe, thanks for the advice wink
Logged

Pauldelbrot
Fractal Senior
******
Posts: 2592



pderbyshire2
« Reply #80 on: May 26, 2011, 08:30:57 AM »

I'd like to see support for this in Mandelbulber.
Logged

Pauldelbrot
Fractal Senior
******
Posts: 2592



pderbyshire2
« Reply #81 on: May 27, 2011, 08:51:16 AM »

Some more good variations Kali.

A couple of samples I found when exploring.

z=abs(z*c+1)+1/abs(z*c+1) images

Jason, I can't reproduce these using the formula provided. I mostly don't get space-filling patterns with exponential smoothing and 1000 iterations, and when I do they seem to be much noisier and less structured. What were the c parameters for those images?
Logged

Softology
Conqueror
*******
Posts: 120


« Reply #82 on: June 08, 2011, 12:27:25 AM »

Some more good variations Kali.

A couple of samples I found when exploring.

z=abs(z*c+1)+1/abs(z*c+1) images

Jason, I can't reproduce these using the formula provided. I mostly don't get space-filling patterns with exponential smoothing and 1000 iterations, and when I do they seem to be much noisier and less structured. What were the c parameters for those images?

OK, here are the images (I realised I messed up the order of images linked to with the formulas in the other post) and formula details.


Formula z=abs(z*c+1)+1/abs(z*c+1)
The C values are 0.288235294117647 real 0.842261306532663 imaginary.
This one uses "Dual Real<0" symmetry.  Before doing the usual complex math calcs each iteration mirror z by using if z.x<0 then z.r:=-z.r


Formula z=abs(z*c+1)+1/abs(z*c+1)
The C values are -0.370588235294118 real 0.872613065326633 imaginary.
This one uses "Dual Real>0" symmetry.  Before doing the usual complex math calcs each iteration mirror z by using if z.x>0 then z.r:=-z.r


Formula z=(z*c+1)+1/(z*c+1)
The C values are -0.347058823529412 real -0.508391959798995 imaginary.
This one uses "Full Tetrahedral" symmetry.  Before doing the usual complex math calcs each iteration perform the following code (which was an experiment with using the KIFS 3D fold techniques in 2D)
                 if(z.x+z.y<0) then
                 begin
                      x1:=-z.y;
                      z.y:=-z.x;
                      z.x:=x1;
                 end;
                 if(z.x-z.y<0) then
                 begin
                      x1:=z.y;
                      z.y:=z.x;
                      z.x:=x1;
                 end;


Formula z=(z*c+1)+1/(z*c+1)
The C values are -0.323529411764706 real -0.0834673366834171 imaginary.
This one uses "Octahedral" symmetry.  Before doing the usual complex math calcs each iteration perform the following code (which was an experiment with using the KIFS 3D fold techniques in 2D)
                 //octahedral
                 z.x:=abs(z.x);
                 z.y:=abs(z.y);
                 if (z.x-z.y<0) then
                 begin
                      x1:=z.y;
                      z.y:=z.x;
                      z.x:=x1;
                 end;
Also I have an option to raise z to a specified power each iteration.  In the above image the power is 1.11.  The others are power 1, so no change is needed for them.

Hope that helps.

Jason.





Logged
Pauldelbrot
Fractal Senior
******
Posts: 2592



pderbyshire2
« Reply #83 on: June 08, 2011, 03:56:48 AM »

Thanks for the information. I'll check this out.
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #84 on: June 08, 2011, 06:49:07 AM »

@Paul: you are doing too much iterations, try with <50
@Jason: Nice variations and images. And thanks for the mention in your blog  wink

I have tried a lot of variations with good results, like adding transformations, foldings, rotations, translations, and so on...

But this is a more simple and still nice add-on to original formula, just multiplying by a constant complex number:

z=abs(1/z)*m+c

The attached example is for c=-1-2i and m=1+2i

Also try z=abs(1/z)*c+m in mandelbrot mode for some given m value. Good for a "preview" of the patterns to pick up Julia values.



* bolas.jpg (179.27 KB, 1000x600 - viewed 189 times.)
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #85 on: June 08, 2011, 06:42:02 PM »

another apollonian packing

c=1
m=i



* apollonian.jpg (174.35 KB, 1000x600 - viewed 160 times.)
Logged

fracmonk
Fractal Fertilizer
*****
Posts: 356


« Reply #86 on: June 08, 2011, 09:02:50 PM »

Kali-  Love your last one- it's a classic subject...wish I had time to investigate it.  Very frustrating for me...hardly have time for my my own fave.  What you're doing here looks very fruitful, though.  I'm v. happy 4 U.  I'll be in touch.
Logged
Pauldelbrot
Fractal Senior
******
Posts: 2592



pderbyshire2
« Reply #87 on: July 05, 2011, 01:48:58 AM »



Formula z=abs(z*c+1)+1/abs(z*c+1)
The C values are -0.370588235294118 real 0.872613065326633 imaginary.
This one uses "Dual Real>0" symmetry.  Before doing the usual complex math calcs each iteration mirror z by using if z.x>0 then z.r:=-z.r

Ah, the original post didn't mention this step, only the z=abs(z*c+1)+1/abs(z*c+1) part.

However, though I now come closer with my own code, I still can't quite reproduce the above. Here's the closest I've got:



That's with 3x3 AA and no serious attempt to replicate the exact color scheme. And I don't know what center coordinates you used.

There's a resemblance to your image now, and space-filling structure, but don't see the "over/under bridges" aspect that is very pleasing in your image, so I'm not apparently getting the same exact Julia set. Which means something is still not exact.

The loop is

Code:
complex one = COMPLEX(1,0);
...
double r = REAL(z);
if (r > 0) {
        z = COMPLEX(-r,IMAG(z));
}
complex t = CABS(CADD(CMUL(z,c),one);
z = CADD(t,CINV(t));

and the various complex manipulation macros are all definitely correct (a normal Mandelbrot comes out correctly, for starters).

Any more information you might have would be useful.
Logged

Pauldelbrot
Fractal Senior
******
Posts: 2592



pderbyshire2
« Reply #88 on: July 05, 2011, 01:51:57 AM »

Here's another one, on the Y axis this time and with a slightly closer color scheme. I still see a resemblance, but not the over/under thing. I wonder if there's still a mirroring step missing somehow.

Logged

Softology
Conqueror
*******
Posts: 120


« Reply #89 on: July 05, 2011, 07:42:07 AM »

Your code does look right.

This is how I do it... the references to .x and .y are for the real and imaginary components of the complex number.
cone is initialised to real=1, imag=0

if z.x>0 then z.x:=-z.x;
tmpc:=cadd(cmult(z,c),cone);
tmpc.x:=abs(tmpc.x);
tmpc.y:=abs(tmpc.y);
z:=cadd(tmpc,cdiv(cone,tmpc));
CSet(z.x,z.y,cfrectangular);

The real (x axis) coords for Z go from approx -4 to +4
The imaginary (Y axis) coords go from approx -7 to -2

Jason.
Logged
Pages: 1 ... 4 5 [6] 7 8 9   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Hello - A simple fractal first post Meet & Greet « 1 2 3 » Thunderwave 44 16021 Last post October 17, 2010, 03:16:04 PM
by kek
Simple Nova Fractal Images Showcase (Rate My Fractal) The Rev 0 2230 Last post September 27, 2010, 09:26:51 PM
by The Rev
Fractal patterns from decimal extraction General Discussion « 1 2 » Kali 15 11639 Last post April 20, 2012, 05:52:48 PM
by tit_toinou
Semiconductor electrons in fractal patterns Fractal News across the World Apophyster 0 2450 Last post April 14, 2013, 03:02:17 AM
by Apophyster
Simple square based fractal. 3D Fractal Generation zomg 4 3833 Last post January 19, 2015, 05:52:18 PM
by Logos

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