Logo by S Nelson - 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. March 29, 2024, 12:29:35 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 ... 21 22 [23] 24 25 ... 37   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: True 3D mandelbrot type fractal  (Read 603907 times)
0 Members and 1 Guest are viewing this topic.
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #330 on: October 15, 2009, 10:00:13 PM »

Twinbee, that is a cool animation. Here is my favourite cosine triplex variant; like a quaternion but more Gothic. This one went overnight to get reasonably clean. Inverse iteration struggles with some settings, even with MIIM. Forward iteration should produce quicker and nicer images in many cases, if not all.

Garth:
I've been trying and failing to reproduce your inverse renders but it appears that the divergent formula I'm using is not the exact inverse of your inverted version - here's my iteration loop where zri is x/y (complex) and zj is z (float):

            r = (magn=sqrt(magn))^@mpwr
            th = @mpwr*atan2(zri)
            ph = @mpwr*acos(zj/magn)
            zri = r*(cos(th)*sin(ph) + flip(sin(ph)*sin(th))) + cri
            zj = r*cos(ph) + cj
            magn = |zri| + sqr(zj)

Is that what you intended as the "forwards" iteration ?

As I said I can't seem to reproduce your inverse renders but I do get some interesting Julias - will post some 640*480 renders shortly smiley
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
xenodreambuie
Conqueror
*******
Posts: 124



WWW
« Reply #331 on: October 16, 2009, 12:43:17 AM »

Dave, you're right. That is the correct forward formula. I had assumed that the inverse worked with independent roots for phi and theta, simply because the pictures looked nice and made sense, but that turns out to be wrong. What I've been getting is two redundant roots, and missing the other two. I hope the correct Julias are better! I can easily fix my formula for the quadratic case, and have to check the general solution. What is surprising is that I had tried an 8th degree Julia and it looked pretty similar to Lycium's render, so I took that as a sign that it was likely correct.
Logged

Regards, Garth
http://xenodream.com
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #332 on: October 16, 2009, 01:14:39 AM »

Dave, you're right. That is the correct forward formula. I had assumed that the inverse worked with independent roots for phi and theta, simply because the pictures looked nice and made sense, but that turns out to be wrong. What I've been getting is two redundant roots, and missing the other two. I hope the correct Julias are better! I can easily fix my formula for the quadratic case, and have to check the general solution. What is surprising is that I had tried an 8th degree Julia and it looked pretty similar to Lycium's render, so I took that as a sign that it was likely correct.

I don't suppose you can work out a "forward" method for your erroneous version ? - the Julias are rather nice smiley
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #333 on: October 16, 2009, 02:14:09 AM »

Zooms of two Julias from the new contender for a true 3D Mandelbrot that I posted here:

http://www.fractalforums.com/3d-fractal-generation/true-3d-mandlebrot-type-fractal/msg8231/#msg8231

They were rendered as here at 640*480 and 640*640 and took 14 mins and 12 mins respectively.

In both cases you can see a problem with my algorithm - the speckles are due to some points never reaching the iteration density required to be called "solid" - both these Julias almost disappear at 150 iterations or so.

Apologies - it wasn't algorithm error, it was user error, I simply hadn't set the minimum step distance low enough smiley
Am just re-rendering corrected images.
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
xenodreambuie
Conqueror
*******
Posts: 124



WWW
« Reply #334 on: October 16, 2009, 02:30:58 AM »

Dave, for a forward method of my erroneous Julias, I think it just needs to map values with the missing roots over to the other roots. Try this: after computing phi and theta; if phi>pi/2, add pi/2 to both phi and theta (before multiplying by @mpwr.)

Edit: I doubt that will work. My analysis of the inverse iteration problem was too hasty.
« Last Edit: October 16, 2009, 02:56:48 AM by xenodreambuie » Logged

Regards, Garth
http://xenodream.com
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #335 on: October 16, 2009, 03:33:08 AM »

Garth: OK !

Here are the new candidate Julias rendered properly:



Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #336 on: October 17, 2009, 01:28:46 AM »

Finally had a go at some Julia's using Garth's version of the triplex formula:

http://www.fractalforums.com/gallery/?su=user;u=141;cat=95
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
xenodreambuie
Conqueror
*******
Posts: 124



WWW
« Reply #337 on: October 17, 2009, 01:38:34 PM »

Excellent, Dave! I had managed to replicate that form with an inverse formula, but wasn't sure if it was right. I have it working for quadratic and expect to make it work for other powers. I've also solved the inverse trig version of the z=-rsin(phi) one. It's much cleaner for some settings because it has no singularities or instabilities.

For the forward version of my alternative triplex, try this:
ph = acos(zj/magn)
if ph>pi/2 then ph = pi-ph  // or whatever the UF equivalent is
ph =  @mpwr*ph

Compared with the proper cos triplex, my alternative has two of the correct roots and two wrong, and misses two correct ones. So for the ones that are missing, you need to change phi to the wrong roots instead.
Logged

Regards, Garth
http://xenodream.com
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #338 on: October 17, 2009, 05:01:49 PM »

Excellent, Dave! I had managed to replicate that form with an inverse formula, but wasn't sure if it was right. I have it working for quadratic and expect to make it work for other powers. I've also solved the inverse trig version of the z=-rsin(phi) one. It's much cleaner for some settings because it has no singularities or instabilities.

For the forward version of my alternative triplex, try this:
ph = acos(zj/magn)
if ph>pi/2 then ph = pi-ph  // or whatever the UF equivalent is
ph =  @mpwr*ph

Compared with the proper cos triplex, my alternative has two of the correct roots and two wrong, and misses two correct ones. So for the ones that are missing, you need to change phi to the wrong roots instead.

Thanks and thanks for the details for that "forward" version - will try it later smiley

In the meantime here's a Julia animation using the "correct" forwards cos triplex:

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

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
stigomaster
Guest
« Reply #339 on: October 17, 2009, 08:37:37 PM »

Oh! I would like to see a seed morph of one of them julias!
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #340 on: October 17, 2009, 11:14:43 PM »

Hi all, here's the "forwards" Mandelbrot for Garth's erroneous version of the cos triplex formula:

http://www.fractalforums.com/gallery/?su=user;cat=95;u=141

UF iteration:

            r = (magn=sqrt(magn))^@mpwr
            th = @mpwr*atan2(zri)
            if (ph = acos(zj/magn))>0.5*#pi
              ph = #pi - ph
            elseif ph<-0.5*#pi
              ph = -#pi - ph
            endif
            ph = @mpwr*ph
            zri = r*(cos(th)*sin(ph) + flip(sin(ph)*sin(th))) + cri
            zj = r*cos(ph) + cj
            magn = |zri| + sqr(zj)

Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #341 on: October 18, 2009, 12:17:45 AM »

Here's a standard escape-time render of the larger Julia Set that Garth uploaded (i.e. using the erroneous version of the cos triplex formula).



http://www.fractalforums.com/gallery/?sa=view;id=998

« Last Edit: October 18, 2009, 04:02:05 AM by David Makin » Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
twinbee
Fractal Fertilizer
*****
Posts: 383



WWW
« Reply #342 on: October 18, 2009, 02:45:11 AM »

Great shape Garth - one can't get the resolution big enough for those methinks.

Here's another couple of renders (bigger resolutions are on the way). The 2nd one is from the inside!!



Logged
bugman
Conqueror
*******
Posts: 122



WWW
« Reply #343 on: October 18, 2009, 03:06:13 AM »

Great shape Garth - one can't get the resolution big enough for those methinks.

Here's another couple of renders (bigger resolutions are on the way). The 2nd one is from the inside!!

I love it! Are these also 8th order Mandelbrots of your formula (White's formula)?
Logged
xenodreambuie
Conqueror
*******
Posts: 124



WWW
« Reply #344 on: October 18, 2009, 03:23:14 AM »

Dave, Fantastic! I wasn't sure if that would work. Slight differences from mine are because I changed the parameters a bit for the large render.

You shouldn't need the elseif check since acos results are from 0 to pi. Working with phi in 0 to 2pi creates a double cover, which is the cause of the asymmetry between forward and inverse iteration. In my naive cosine version (ignoring fractional power support for simplicity), I used

phi = (phi + (Np-1)*2pi)*invpower
theta = (theta + (Nt-1)*2pi)*invpower

where Np and Nt are the choices of roots, from 0 to power-1.

To get the true cosine version working, all it took was changing to

theta = (theta + (Nt-1)*2pi + Np*pi)*invpower

For the trig sine version, it was a bit more complicated:

theta = (theta + (Nt-1)*2pi + Np*pi)*invpower
if phi<0 then phi= (phi - Np*pi)*invpower else phi= (phi + Np*pi)*invpower

But I also had to flip the sign of z only if it didn't already change;
if z*newz>0 then newz= -newz

Some time it will be convenient to adopt a simple naming convention.

Daniel; awesome pics!
Logged

Regards, Garth
http://xenodream.com
Pages: 1 ... 21 22 [23] 24 25 ... 37   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Implementation: 3D mandelbrot type fractal 3D Fractal Generation « 1 2 » steamraven 27 64899 Last post August 21, 2016, 12:13:13 AM
by ironfractal
Re: True 3D mandelbrot type fractal Other / General Discussion shanest 2 26815 Last post November 20, 2009, 03:24:26 AM
by fractalrebel
True 3D mandelbrot fractal (search for the holy grail continues) The 3D Mandelbulb « 1 2 ... 17 18 » illi 260 57526 Last post November 25, 2010, 12:57:55 AM
by cKleinhuis
New fractal type... latest 3d type.. a z^2 for Benoit Images Showcase (Rate My Fractal) M Benesi 0 7710 Last post October 21, 2010, 07:14:00 AM
by M Benesi
My First Mandelbrot...Okay not true. Images Showcase (Rate My Fractal) Zephitmaal 3 8321 Last post January 07, 2012, 04:30:36 PM
by Pauldelbrot

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