Title: How to make a sphere? Post by: Weber on January 29, 2016, 03:56:34 AM I am wondering if someone can post a formula of a spherical shaped fractal?
I don't want a fractal that has a sphere somewhere inside, but rather the whole fractal is a sphere. If no one can post the param, could someone at least point me in the right direction as far as where to start? What formula etc...? Title: Re: How to make a sphere? Post by: M Benesi on January 29, 2016, 05:36:51 AM A Julia of the default bulb with parameters (0,0,0) is a sphere, but it's not really that fractal...
You could use: Code: USE 1Bryan1's code below... To make something similar to the following (made with Fragmentarium... for the extra circular holes): (https://lh3.googleusercontent.com/-nnpAvXu3HIE/Vjkd3HzPGpI/AAAAAAAADcE/2SfRpyAzuWk/s512-Ic42/holespheretype.jpeg) Title: Re: How to make a sphere? Post by: 1Bryan1 on January 29, 2016, 09:22:44 AM A Julia of the default bulb with parameters (0,0,0) is a sphere, but it's not really that fractal... When I tried the parameters - formula 1 is blank.Putting Formula 1 as "_BPolyhedronToSphere" seems to make any additional formula fall into a sphere. Title: Re: How to make a sphere? Post by: Weber on January 29, 2016, 07:30:13 PM Ty both! And yes by adding "_BPolyhedronToSphere", I was able to create that same image.
Title: Re: How to make a sphere? Post by: 1Bryan1 on January 29, 2016, 10:13:49 PM For your info: if you put _Transform and _BPolyhedronToSphere as your first two formula then anything in Formula 3 (Fo 3) onwards AND tick "repeat from here" in Fo 3 - you can rotate, scale and move your spherical artwork within Formula 1.
For example, I have done this for M Benesi's parameter (below). In the Navigator window - click on "Formula values:" to access the formula parameters and play with the values Code: Mandelbulb3Dv18{Title: Re: How to make a sphere? Post by: M Benesi on January 30, 2016, 01:18:36 AM When I tried the parameters - formula 1 is blank. Thanks Bryan, formula 1 doesn't show up because the formula is called "_BPolyhedronlToSphere" (with an l in it!) on my computer.... probably should change it so this doesn't happen again.Putting Formula 1 as "_BPolyhedronToSphere" seems to make any additional formula fall into a sphere. I originally called the formula "PolyhedralToSphere" and when I changed the name I left the l... apparently Andreas or Luca corrected my misspelling... and I didn't. Title: Re: How to make a sphere? Post by: M Benesi on January 30, 2016, 01:21:49 AM Ohh- side note, mclarekin has been working on some of msltoe's old formulas, some of which have lots of spheres... might work for you.
Title: Re: How to make a sphere? Post by: mclarekin on January 30, 2016, 02:26:15 AM I am not quite sure what is needed???
but the base shape of many fractals is a sphere, it is what you add afterwards that brings it away form being a sphere and with the following code i can inflate a lot of fractals into a sphere Quote double lengthTempZ = -z.Length(); // for analytic log DEif (lengthTempZ > -1e-21) lengthTempZ = -1e-21; // z is neg.) z *= 1 + fractal->transformCommon.offset / lengthTempZ; z *= fractal->transformCommon.scale1; // scale to control the size increase when using a positive radial offset aux.DE = aux.DE * fabs(fractal->transformCommon.scale1) + 1.0; // for analytic linear DE aux.r_dz *= fabs(fractal->transformCommon.scale1); Title: Re: How to make a sphere? Post by: Weber on January 30, 2016, 05:33:56 PM I too can get a basic sphere from a lot of formula combinations, but in this video at 5:20 is what I'm really trying to go for. It probably wasn't made in M3D but I want to try and get as close as I can to recreating it.
This is my video, but those aren't my fractals. I simply remixed them by adding music. https://www.youtube.com/watch?v=yrBXWVfxHoE. Title: Re: How to make a sphere? Post by: M Benesi on January 30, 2016, 07:01:04 PM The details look like an Amazing Box of some sort. If you know the name of the original video, you might be able to ask someone the parameters.
At second glance, I'm thinking you could just do an Amazing Box with a bounding sphere (not sure of the name of a bounding sphere type formula for M3D??). You want to find a formula like: if (sqrt(pos.x^2+pos.y^2+pos.z^2) > bounding_sphere_radius) {x=max_bailout+1;} or DE= sqrt(pos.x^2+pos.y^2+pos.z^2) - bounding_sphere_radius; with pos being the 3 dimensional "pixel" location vector. Title: Re: How to make a sphere? Post by: Aexion on January 31, 2016, 02:38:07 AM The details look like an Amazing Box of some sort. If you know the name of the original video, you might be able to ask someone the parameters. There's a third possibility:At second glance, I'm thinking you could just do an Amazing Box with a bounding sphere (not sure of the name of a bounding sphere type formula for M3D??). You want to find a formula like: if (sqrt(pos.x^2+pos.y^2+pos.z^2) > bounding_sphere_radius) {x=max_bailout+1;} or DE= sqrt(pos.x^2+pos.y^2+pos.z^2) - bounding_sphere_radius; with pos being the 3 dimensional "pixel" location vector. The spherical version of the box, the one that iterates the radius as an extra dimension.. I think that I already have posted the formula.. Here's an example: (http://nocache-nocookies.digitalgott.com/gallery/7/794_07_05_11_1_22_48.jpeg) Title: Re: How to make a sphere? Post by: M Benesi on January 31, 2016, 05:58:19 AM There's a third possibility: Which of the 30 Amazing box formulas is it? :DThe spherical version of the box, the one that iterates the radius as an extra dimension.. I think that I already have posted the formula.. Title: Re: How to make a sphere? Post by: Weber on January 31, 2016, 05:00:38 PM The details look like an Amazing Box of some sort. If you know the name of the original video, you might be able to ask someone the parameters. At second glance, I'm thinking you could just do an Amazing Box with a bounding sphere (not sure of the name of a bounding sphere type formula for M3D??). You want to find a formula like: if (sqrt(pos.x^2+pos.y^2+pos.z^2) > bounding_sphere_radius) {x=max_bailout+1;} or DE= sqrt(pos.x^2+pos.y^2+pos.z^2) - bounding_sphere_radius; with pos being the 3 dimensional "pixel" location vector. There's a third possibility: The spherical version of the box, the one that iterates the radius as an extra dimension.. I think that I already have posted the formula.. Here's an example: (http://nocache-nocookies.digitalgott.com/gallery/7/794_07_05_11_1_22_48.jpeg) Well thanks both for your help! I'll definitely be giving these a try. Title: Re: How to make a sphere? Post by: Aexion on February 01, 2016, 11:42:41 AM Which of the 30 Amazing box formulas is it? :D 30!! That's a lot of variations to explore!!.. :)I just used the original one.. Here's the shader (I coded it in fragmentarium), not very good (I'm a little rusty in shader coding),but it works. It basically takes the radius as an extra dimension. Also, I have included the tetrahedron/octahedron one.. Its just the same as the sphere, but using the dimensions in another way (quadray coordinates).. If you add the extra dimension for the radius, you will get the sphere, but this time made of triangles. Hope that helps.. Title: Re: How to make a sphere? Post by: Weber on February 01, 2016, 05:01:49 PM So here's what I was able to achieve with the above mentioned formulas with a couple of my own added on.
Title: Re: How to make a sphere? Post by: M Benesi on February 01, 2016, 08:23:55 PM Those look cool!
Aexion- I haven't found the M3D version (I only looked through 6 or 7 of the ABox formulas)- before I keep going, did you or Luca write one? Title: Re: How to make a sphere? Post by: Aexion on February 02, 2016, 01:33:31 AM Those look cool! I think that most of these sets are already in M3D, since Luca coded them. Never saw the Box Sphere, nor the Tetrahedron/Octahedron Sphere, but many variations are already there (also in Fragmentarium). These are the old threads:Aexion- I haven't found the M3D version (I only looked through 6 or 7 of the ABox formulas)- before I keep going, did you or Luca write one? http://www.fractalforums.com/3d-fractal-generation/platonic-dimensions/ http://www.fractalforums.com/the-3d-mandelbulb/quadray-sets/msg32005/#msg32005 I have an idea for some new ones, let me try.. :) Title: Re: How to make a sphere? Post by: mclarekin on February 02, 2016, 04:43:16 AM @ aexion , cool formulas and thanks for digging up the old posts |