3
$\begingroup$

Simply, I would like to do this procedural circuit board wire, but with Geometry Nodes:

Enter image description here

The point being, ideally I would just increase an integer and new objects would appear at the end of the chain, rotated in -45, 0 or 45 degree angles, preferably 0 mostly (but that I can handle).

I tried multiple setups, but this is beyond me. The so-called random value seems to always be the same for all the objects, not truly random :(

How can I do it?

$\endgroup$
3
  • $\begingroup$ Since the distance between the points should always be the same, and no loops are available in GN, this will not be easy, I fear. Let's see. $\endgroup$
    – quellenform
    Apr 9, 2022 at 10:02
  • $\begingroup$ Thanks! I tried the mesh line option, but hmm, still quite far from what I'm aiming for $\endgroup$ Apr 9, 2022 at 10:03
  • $\begingroup$ @quellenform ah, actually, the distance between the points don't have to be the same necessarily, if it can look like the example above somewhat $\endgroup$ Apr 9, 2022 at 10:09

4 Answers 4

6
$\begingroup$

Here we go!

This answer shows exactly the solution to the concern you outlined:

  1. First create a line with the desired number of subdivisions.
  2. Then create a random angle of $-45°$, $0°$, or $+45°$ per index and capture it with the Capture Attribute node
  3. Next, add the coordinates resulting from the sum of the direction vectors point by point using the node Accumulate Field and set the positions of the individual points of your line.

The advantage of this solution is that the distance between the points is always the same as shown in the picture.

enter image description here

And here is another alternative, where you can influence the probability of an angle change:

enter image description here

Here is the blend file (Updated!):

$\endgroup$
2
3
$\begingroup$

Here's my take: enter image description here

The idea is to normalize the vector so that each component is always -1, 0, or 1, as if putting the points on a grid.

$\endgroup$
2
  • $\begingroup$ Interesting! I'll try it $\endgroup$ Apr 9, 2022 at 10:45
  • $\begingroup$ Otherwise superb stuff, but... doesn't fully look like a circuit board wire :/ Can't get it to look like that $\endgroup$ Apr 9, 2022 at 11:21
1
$\begingroup$

enter image description here

This is closer, but still quite far from what I'm aiming for

AH, but with Lukas' method above I managed to do this, when altered the 'map range' node a bit and added a 'Fillet Curve' node :) Now it looks more like a circuit board wire, yay.

enter image description here

$\endgroup$
1
$\begingroup$

Try to create an array of lines which are rotated -45,0,45. All at 0,0,0 and then place them end to end using the Accumulate fields node.

$\endgroup$
1
  • $\begingroup$ Shall be tried immediately! Haven't used Accumulate fields node at all, but I know what it's for, so let's see :) Thank you! $\endgroup$ Apr 9, 2022 at 10:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .