7

I can create a Menger sponge fractal using geometry nodes.

Image1:

im1a

im2a

See Blender file below:

Now I'm trying to create a Sierpinski Dodecahedron

Image2

I tried to replace the cube node with a Dodecahedron created as an object but that didn't work

Image3

The goal is to create the Sierpinski Dodecahedron fractal that can be sliced into several sections and 3D printed out.

Rick T
  • 4,391
  • 1
  • 20
  • 64
  • 1
    Have been discussing this with @lemon just recently .. have got this far.. but running into floating-point errors in the dodecahedral case. Got to get the maths right for the scaling factor. And I know, on my machine, if I go one level further I will crash – Robin Betts Nov 20 '21 at 20:13

2 Answers2

5

with this node setup:

enter image description here

you get this:

enter image description here

one more instance level:

enter image description here

enter image description here

Chris
  • 59,454
  • 6
  • 30
  • 84
  • 1
    Great stuff! How did you determine your scale factor? I wound up with accumulating deviations.. (Mind you, the resolution will surely be greater than any printer's, anyway...) – Robin Betts Nov 21 '21 at 08:17
  • Thank you!!!!! I just read the wiki article – Chris Nov 21 '21 at 08:31
  • One more level and my computer still worked but Blender crashed everytime… – Chris Nov 21 '21 at 08:32
  • :) I thought I'd read the right wiki article.. but apparently not... link? I think we still both have a problem... coincident (duplicate) instances ?? .. you could maybe squeeze another level out.. – Robin Betts Nov 21 '21 at 08:53
  • i read this: https://en.wikipedia.org/wiki/N-flake – Chris Nov 21 '21 at 09:28
  • 2
    that gives the scale factor for instances in the corners: 1/(2+phi) I've still got to work out the factor for instances on the corners? I'll get to it.. my neurons aren't firing atm. Need coffee. – Robin Betts Nov 21 '21 at 10:05
  • Thanks! I really think doing fractals is geometry nodes will make life easier. I've looked into Animation Nodes and L-Systems but geometry nodes opens another door...It also helps that the creator of Animation Nodes is also working on Geometry Nodes and adding loops to it :-) – Rick T Nov 22 '21 at 06:53
  • You are welcome – Chris Nov 22 '21 at 07:00
3

test

test2

This setup works for every fractal. The current scale factor (the Value and its Math node) is set to scale dodecahedrons, but it can be adjusted for other primitives (usually you would change the Power to a Multiply).

To anyone who wants to render this, I recommend 3.0.1, because more recent versions cause artifacts with overlapping geometry (it's a known regression).

Lt-Knb
  • 31
  • 3