Title: New fractal.. needs a name Post by: Tglad on November 16, 2012, 07:00:23 AM I made this new fractal http://glsl.heroku.com/e#4851.17 (http://glsl.heroku.com/e#4851.17)
It is similar to this Koch surface: (http://tartley.com/wp-content/uploads/2010/08/Koch_surface_0_through_3.png) but you can pick how much it bends, as you can with a 2d Koch curve: (http://www.generativeart.com/on/cic/papersga2004/15_file/image006.gif) I need to optimise the code (any tips?) and fix a few pixel glitches. You'll need webGL on your browser to view it. Thanks Syntopia for the Mandelbulb example for guidance. Title: Re: New fractal.. needs a name Post by: kram1032 on November 16, 2012, 08:58:33 AM Koch-Peano-surface.
Maybe you can extend it further to be able to do a bit more: http://en.wikipedia.org/wiki/De_Rham_curve Title: Re: New fractal.. needs a name Post by: Kali on November 16, 2012, 09:25:25 AM I get "maximum temp register index exceeded" errors. I have a Radeon 6870, tried with Firefox and Chrome.
Title: Re: New fractal.. needs a name Post by: KRAFTWERK on November 16, 2012, 10:58:44 AM TetraGlad-Koch
Title: Re: New fractal.. needs a name Post by: visual.bermarte on November 16, 2012, 02:00:42 PM @Kali: maybe it's an ANGLE problem; see http://blog.hvidtfeldts.net/index.php/2012/06/webgl-for-shader-graphics/ or http://www.fractalforums.com/fractal-programs/new-webgl-application-to-explore-3d-fractals/
Firefox and Chrome use ANGLE by default. In Firefox use the about:config URL, .. set webgl.prefer-native-gl=true to disable ANGLE. For the other browser, just make a shortcut to Chrome with the --use-gl=desktop key. Title: Re: New fractal.. needs a name Post by: DarkBeam on November 16, 2012, 05:53:23 PM It says compiled with errors. And nothing is displayed, here :fiery:
EDIT: This is the script for those who are interested Code: #ifdef GL_ES Title: Re: New fractal.. needs a name Post by: Tglad on November 17, 2012, 12:16:52 AM I guess webGL isn't so portable after all :-\
To see how the fractal is built you can set SHOW_FULL_TRIANGLE to 1 in the code, and set the maxIterations to 0, then 1, then 2 etc. Basically each triangle becomes six identical but smaller triangles including 4 in a squashed pyramid shape. For a pyramid base edge length of 1, you define the shape based on the pyramid height: <0 shell shape =0 flat plane >0 tree shape 0.55 (roughly) max height without self penetration. i.e. tree-sponge (see https://sites.google.com/site/simplextable/what-is-the-simplex-table) 1.75 (roughly) singular point where children are same size as parent triangle so shape is infinite in size and probably fully covers the space. (In the example the height only goes from -0.7 to 0.7 as you move the mouse up and down). Title: Re: New fractal.. needs a name Post by: Syntopia on November 17, 2012, 09:22:42 AM I tried the fractal, and it is yet another ANGLE issue. It works fine under Chrome and Firefox with ANGLE disabled. With ANGLE disabled I get the same error as Kali. Opera fails for other reasons.
WebGL is a great technology, but as of now it is so broken. Apple refuse to officially support it on their iOS devices (even though they use it in their iAds), Microsoft refuse to use it in IE for security reasons, and Chrome and Firefox's reliance on ANGLE means the nearly all complex shaders fail. Title: Re: New fractal.. needs a name Post by: Pauldelbrot on November 18, 2012, 12:36:34 AM Microsoft refuse to use it in IE for security reasons Is that a joke, or a sign of the impending Apocalypse? Title: Re: New fractal.. needs a name Post by: rollercoaster158 on November 18, 2012, 04:36:22 AM Is that a joke, or a sign of the impending Apocalypse? Actually a sign of the impending Windows 8, but that's basically the same as the apocalypse. Yeah, getting "Compiled with errors" on all browsers. :-\ Title: Re: New fractal.. needs a name Post by: kram1032 on November 18, 2012, 11:35:58 AM oh wow, I only now saw the link to the website and see what you're talking about.
Yeah, "compiled with errors" on Firefox. Makes me wonder, how did you even make it work for yourself? What browser are you using? Title: Re: New fractal.. needs a name Post by: Tglad on November 18, 2012, 06:29:18 PM I'm on a macbook, it works fine in Chrome and Firefox.
I'll try converting it to Fragmentarium at some point... or if anyone is game you can hover over the 'compiled with errors' text and it will tell you the error... maybe it is just a small syntax thing. Title: Re: New fractal.. needs a name Post by: kram1032 on November 18, 2012, 06:45:16 PM Win7 Firefox 16.0.2
(http://puu.sh/1rCDT) Title: Re: New fractal.. needs a name Post by: Tglad on November 18, 2012, 07:39:30 PM Same as Kali, looks like your graphics cards don't have enough temporary registers in them to perform the code.
Not simple to fix, just too many variables for your card. Title: Re: New fractal.. needs a name Post by: Syntopia on November 18, 2012, 08:56:46 PM Same as Kali, looks like your graphics cards don't have enough temporary registers in them to perform the code. Not simple to fix, just too many variables for your card. No, this is an ANGLE problem. I get the same error - but if I disable ANGLE it works - both in Firefox and Chrome. This is Windows issue only, since there is no GLSL->HSLSL conversion on Mac. For unknown reasons ANGLE imposes shader model 3 constraints, which has only 32 temporary registers. Title: Re: New fractal.. Volcanic Surface Post by: Tglad on November 28, 2012, 01:44:28 PM Thanks Syntopia, useful info.
Here you can see the surface with height of -0.25 up to 1: (http://2.bp.blogspot.com/-LizyprvPr-A/ULYDG0h0_rI/AAAAAAAAAMc/HpTQDgFCw8U/s640/surface.png) It really explodes out like a volcano when height increases past 1, so I think I'll call it a volcanic surface fractal. Around 1.75 the fractal occupies all of space and has a Hausdorff dimension of infinity! Title: Re: New fractal.. needs a name Post by: cKleinhuis on November 28, 2012, 02:11:01 PM infinite hausdorff dimension ? please elaborate!
Title: Re: New fractal.. needs a name Post by: DarkBeam on November 28, 2012, 05:21:23 PM Works - managed to disable that ANGLE! :-X
Title: Re: New fractal.. needs a name Post by: kram1032 on November 28, 2012, 09:56:43 PM There's mathematically no way it could have a Hausdorff dimension above 3. - unless you embed the entire thing in higher-dimensional space. - particularly in infinite-dimensional one.
Besides that, it's really nice stuff. If you somehow calculate the Hausdorff Dimension with some sort of algorithm and you get infinity, that's either because of numerical instabilities or your algorithm is wrong. Title: Re: New fractal.. Volcanic Surface Post by: Tglad on November 28, 2012, 11:05:22 PM It is because there is overlap (for height > 0.55), so some points in space have double cover, or triple cover etc. You can do the same thing with the Levy C curve, for 90 degree bend angle it has Hausdorff dimension 2 (log(2) / log(sqrt(2))), for bend angle > 90 degree it is log(2)/log( < sqrt(2) ) so the dimension is > 2.
If you don't allow multi-cover of the space then the max Hausdorff dimension is the dimension of the space. Here's a higher res of above image: (http://2.bp.blogspot.com/-LizyprvPr-A/ULYDG0h0_rI/AAAAAAAAAMc/HpTQDgFCw8U/s1600/surface.png) Title: Re: New fractal.. needs a name Post by: kram1032 on November 29, 2012, 12:10:56 AM ah, so multiple-covering counts for adding dimensions. That sort of makes sense. It's like you need more space than you actually have, so you multi-cover to get there.
Title: Re: New fractal.. needs a name Post by: cKleinhuis on November 29, 2012, 12:56:18 AM i get this, but in my eyes it is not really special, because such curves exists ... basically the trivial curve with no movement ... the dot at the center of the c oordinate system would have as well unlimited hausdorff dimension
this brings us to the space filling curves and why it is such a good name ;) but as far as i know the definition of space filling curves is NOT limited to the topografical dimension !? Title: Re: New fractal.. needs a name Post by: Tglad on November 29, 2012, 09:45:51 AM I agree, higher dimension from overlap is a bit meaningless. If we don't allow multi-cover of the space then this fractal goes from 2d and approaches 3d as height goes from 0 to about 1.75. We'd also have to accept that Levy C curve has Hausdorff dimension a little less than 2.
Here are the first 3 iterations if you hadn't guessed: (http://3.bp.blogspot.com/-XGlu2gZRW5U/ULcfI2P4EwI/AAAAAAAAAMs/OWGp1UbQFzI/s1600/iterations.png) Title: Re: New fractal.. needs a name Post by: kram1032 on November 29, 2012, 11:32:16 AM that iteration looks pretty wild. nice.
Title: Re: New fractal.. needs a name Post by: Tglad on December 01, 2012, 01:39:05 AM Here's a variation, you reverse the face normal of the 6 sub-triangles, it gives a shape that looks the same from both sides of the surface:
(http://1.bp.blogspot.com/-LFmselDmYgk/ULlM9zN316I/AAAAAAAAAM8/oMT941lbgJA/s1600/funny11.png) (http://4.bp.blogspot.com/-QulPiZutT78/ULlM_gdbOBI/AAAAAAAAANE/ou_DtFmwizg/s1600/funny12.png) (http://4.bp.blogspot.com/-XirFbCKjfMA/ULlNBkjb05I/AAAAAAAAANM/Ekto6iydPu4/s1600/nice1.png) So is a bit like how the Koch curve differs from the Levy C curve. The pics are the largest height without self intersection, about 0.35. Here's a challenge that is open to everyone... ready?... is there a fractal like this that doesn't self-intersect but folds up into a space-filling surface like the Von Koch curve does? Title: Re: New fractal.. needs a name Post by: Tglad on December 11, 2012, 11:16:14 PM There's an interesting critical point, when the height is 0.55209 then all the triangles are isosceles. This is also about the point where the shape is at its most rough without self-intersecting. I'm not sure if those two are exactly the same point but they could well be.
Title: Re: New fractal.. needs a name Post by: kram1032 on December 12, 2012, 12:48:51 AM it's pretty likely that they are. Would be a strange rare math stunt if they weren't. |