Logo by Fiery - 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. November 20, 2025, 03:15:34 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: Extension of "folding"  (Read 3239 times)
Description: Idea for 'boxes
0 Members and 1 Guest are viewing this topic.
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« on: January 05, 2012, 12:05:28 PM »

Hi, whilst trying this:

http://www.fractalforums.com/programming/interesting-result-from-well-known-idea-on-ff/

I got an an idea - my above 2D algorithm and the Mandelbox etc. use mathematical folding - has anyone tried mathematical pleating yet ?
Am just about to try it in the pattern generator but I'm guessing it will produce interesting results if used instead of (or as well as) folding for Mandelboxes etc.
« Last Edit: January 05, 2012, 12:07:08 PM 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
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: January 05, 2012, 07:47:04 PM »

explain this concept ; "mathematical" folding ... is? alien
Logged

No sweat, guardian of wisdom!
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #2 on: January 05, 2012, 09:23:36 PM »

Not sure if it is used by mathematicians at all, but here on FF it seems to be a conditional reflection, in either a point, line, or plane (reflect if you are on the wrong side). For instance, x=abs(x), is a fold. Lowe's video is a good illustration: http://sites.google.com/site/mandelbox/what-is-a-mandelbox

Makin: wouldn't a pleating be just the same as the Lowe's boxfold (a double fold)?
i.e. either:
x = abs(x-1)-abs(x+1)+x,
or
x = x-abs(x-1)+abs(x+1);

Logged
bib
Global Moderator
Fractal Senior
******
Posts: 2070


At the borders...


100008697663777 @bib993
WWW
« Reply #3 on: January 05, 2012, 09:47:13 PM »

Folding is basically a symmetry. Not sure if this is an official mathematical term, but it is used by Ian Stewart in his famous book "Does God Play Dice" to explain that the essence of chaos is just to repeat the process "stretch + fold" over and over again, the most simple one being the baker's map. http://en.wikipedia.org/wiki/Baker's_map
This is also what the Mandelbox algorithm does to some extent.
Logged

Between order and disorder reigns a delicious moment. (Paul Valéry)
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #4 on: January 05, 2012, 10:30:06 PM »

If David means abs() folds as a new concept, something must be wrong! It is the oldest concept ever, used almost everywhere around. Waiting for more explanation smiley
Logged

No sweat, guardian of wisdom!
kram1032
Fractal Senior
******
Posts: 1863


« Reply #5 on: January 05, 2012, 10:46:35 PM »

Well, in combination with the thread he linked, I'd say it's an idea I actually had before...

The generic kaleidoscope fractals which work on any polytope, have certain planes defined, to be reflected (or folded) along, as far as I can remember.
Now, his idea probably is double-folding, but with a constant offset between the folds.

The thread he linked shows how this looks like with random offsets in 2D.
Logged
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #6 on: January 05, 2012, 11:04:22 PM »

If David means abs() folds as a new concept, something must be wrong! It is the oldest concept ever, used almost everywhere around. Waiting for more explanation smiley

I don't think he says that folding is a new concept - as I read it, he talks about extending folding into something called pleating, leaving us wondering whether this is a double fold or something more complex  than that :-)

But now I am getting curious!
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #7 on: January 05, 2012, 11:10:29 PM »

Apologies I just visualised it as folows:

Code:
2 simultaneous folds (at the ends of yyyy) turn this:

......xxxxxxxxxx->xxxXyyyy->yyyyZzzz->zzzzzzzzzz.......

into this:

                  Xxxx<-xxxx
..........zz<-zzzzyyyy->yyyyxxxx<-xx...........
                  zzzz<-zzzZ

Whereas a (2-fold) pleat (at the ends of yyyy) turns this:

......xxxxxxxxxx->xxxXyyyy->yyyyZzzz->zzzzzzzzzz.......

Into this:

                  xxxx->xxxX
..........xx->xxxxyyyy<-yyyyzzzz->zz...........
                  Zzzz->zzzz


So a pleat is an exact negative of 2 simultaneous folds - to be honest I hadn't realised anyone was using simultaneous folds - I thought the original 'box just used single consecutive ones - maybe my memory's not what it used to be wink

Also at the moment the pattern generator just uses a single fold per iteration (so just consecutive folding) and I think I'm correct in saying that this is definitely different from a simultaneous double-fold (because in consecutive folding part of the section folded on the first fold gets refolded on the second).

In the formula every fold position is random (and is effectively abs() applying it appropriately to positive or negative values) and the max. distance from the origin is gradually decreased until the range stays between -0.5...+0.5  but increasing the number of repetitions still both increases the detail level and changes the pattern.

Of course the nice patterns arise from combining the (2D) folding with rotation.

Also the formula has the option of adjusting the values so the pattern is no longer rotationally symmetrical around the origin - this is just basically a slight offset applied on each iteration that essentially moves the centre of rotation --ooops *and* folding smiley
« Last Edit: January 05, 2012, 11:17:01 PM 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
kram1032
Fractal Senior
******
Posts: 1863


« Reply #8 on: January 06, 2012, 12:43:33 AM »

slight offset meaning constant?

Sounds interesting.
I'm not sure what you mean with all those arrows in your Ascii-folding notation...
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #9 on: January 06, 2012, 12:57:52 AM »

slight offset meaning constant?

Sounds interesting.
I'm not sure what you mean with all those arrows in your Ascii-folding notation...

Nope, it's actually a random - applied at the start of each iteration as follows:

    if !@p_sym
      x = x + p[i+512]
      y = y + p[i+1536]
    endif

It doesn't break any continuity because no matter which pixel it is the random table (p[2048]) always returns the same value (0 to 1) on each iteration (i).

The arrows denote *the original* positive direction - as in all point right prior to folding - you have to imagine it as a side view of a piece of paper or cloth being folded/pleated,

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 #10 on: January 06, 2012, 01:34:18 AM »

Here's one with the rotation symmetry removed due to the "slight move" per iteration....



http://www.fractalforums.com/index.php?action=gallery;sa=view;id=9803
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 #11 on: January 06, 2012, 01:46:06 AM »

Just to add - these render really fast - in fact this one renders in almost exactly the same time as the standard UF default Mandelbrot set at the default location (in multi-pass with periodicity off) with max iterations set to a measly 100 and bailout 128.
In fact even putting my detail level parameter up from 8 to 32 which means that a minimum extra 24 iterations are performed *per pixel* only took the time on my system from 0.3secs to 0.48secs (for a render within UF at 928*696).
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 #12 on: January 06, 2012, 02:50:22 AM »

OK, I really shouldn't think and post when I'm over-tired (have done that two days running now).

Of course my code is not applying the folds *consecutively* for a single point - with visualising things as a whole line/piece of paper/curtain I was thinking the code operated on the whole whereas of course it only operates on one point at a time and doing a *single* fold on that point based on it being left or right (or above/below) the two-fold region *is* doing the folding in a simultaneous manner with respect to the whole and so equivalent to a pleat.

However it made me realise that I could add a repeat count parameter on the folding wink
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
kram1032
Fractal Senior
******
Posts: 1863


« Reply #13 on: January 06, 2012, 04:48:00 AM »

really nice stuff smiley

Any chance to see that in 3D?

Also, if folding basically is a reflection on a line (in 2D) or a plane (in 3D), what about adding other kinds of reflections?
Spherical ones, for instance...
Or you could try parabolic reflections if that works.

Heh... maybe you could even do some kind of fractal origami, figuring out certain Origami-pieces and how they are folded, and coding that into a folding behavior that might terminate after the "figure is done folding" or maybe it starts over...
Possibly we could come up with a "mathematical" version of folding a piece of paper into a cusp. (I hope I'm describing it correctly, here... What I mean is a common origami trick where you get a round shape from a fold by pressing on the fold... Not sure if that would make any sense in this kind of thing though)
Logged
bib
Global Moderator
Fractal Senior
******
Posts: 2070


At the borders...


100008697663777 @bib993
WWW
« Reply #14 on: January 06, 2012, 09:22:46 AM »

Hi Dave,
Sorry if I missed the information, is that formula already in the UF database?
Logged

Between order and disorder reigns a delicious moment. (Paul Valéry)
Pages: [1] 2   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
"19th Hole Terraces" fractal zoom in HD (XviD and H.264) Movies Showcase (Rate My Movie) ericbigas 4 9617 Last post January 05, 2007, 04:19:43 AM
by Zoom
"True 3D" Mamdelbrot, solid based on orbit trapping animation 3D Fractal Generation David Makin 5 22049 Last post September 02, 2009, 10:23:26 PM
by David Makin
"Smooth" folding 3D Fractal Generation knighty 13 5820 Last post September 18, 2011, 12:23:53 PM
by DarkBeam
New book: "Alt.Fractals: A visual guide to fractal geometry and design" Commercial Corner ErkDemon 4 9694 Last post September 26, 2014, 02:57:18 PM
by LMarkoya
Special "offset" and "rotate" options from Fractallab possible in M3d-formula? Mandelbulb 3d « 1 2 » SaMMy 18 36097 Last post April 05, 2011, 12:20:52 PM
by DarkBeam

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