Title: Sphereflake Post by: TruthSerum on May 25, 2015, 10:06:20 AM This sphereflake was formed by recursively duplicating spheres along the principle axis (http://www.fractalforums.com/programming/branchless-maximumprinciple-axis/) of a point on the surface. In this way, points on the surface are divided into sets associated with an axis vector.
This is just a screenshot of ShaderToy. It looks much better in motion: https://www.shadertoy.com/view/Xlj3DK (http://i.imgur.com/jWuTscA.png) Title: Re: Sphereflake Post by: TruthSerum on May 25, 2015, 10:12:33 AM Here's what it looks like when the spheres are replaced by cubes:
(http://i.imgur.com/BTgrw9X.png) Title: Re: Sphereflake Post by: flexiverse on May 26, 2015, 03:24:13 AM Very interesting thanks !
Title: Re: Sphereflake Post by: eiffie on May 26, 2015, 04:53:53 PM I like the way you are constructing the fractal directly - it is easier to understand - but typically since the code becomes simpler we would write the map loop like this: Code: float fd=(length(p)-1.0)/bs; //divide the result by how much we have scaled up p edit: corrected the offset - my bad |