How to create things procedurally in Blender?
🕑 Added 2021-11-17 22:00:01 +0000 UTCBreaking down my thought process when creating something with geometry nodes, as asked by Gehrig Campbell-Dempsey. Hope you find it useful!
Why I messed up the modulo:
I initially said that modulo creates sequences from 1 to 4, but actually from 0 to 3.
Why?
Well, modulo outputs the remainder of a division. So:
10mod5 = 0, because you can fit exactly two fives in a ten, and no space is left
10mod3 = 1, as you can fit three threes and one is left (10-3*3=1)
So when we modulate the array of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 at 4 we get
from
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
an array of
1, 2, 3, 0, 1, 2, 3, 0, 1, 2
Why is 1mod4 1? Because you cannot fit any fours into one, the one remains intact and is our answer. That modulo thing should be clear now.
Comments
Bad Normals
I just discovered I had accidentally deleted the project with a recent hard drive cleanup. It's quite bad of a story, but I hope the video is understandable enough so that you don't heavily need the file.
_udjinstone_
Thank you in advance !
Bad Normals
Yes, I'll upload it tomorrow
_udjinstone_
would we have possibility to get this project blend file?