1
$\begingroup$

I am using Geometry Nodes to create leaves on a stem.

For this I am

  1. starting with a bezier curve for the stem
  2. then bending it with noise
  3. then "solidifying" it (with a tapering profile curve)
  4. then placing a leaf mesh on each curve point
  5. then translating it according to stem thickness at each point
  6. then rotating it around the stem

At step 6, the "Rotate Instances" node correctly uses the curve's point (red dot) as pivot, but rotation is applied in global space (red lines), which does not respect the curve's bend.

Is there a way to use the "point space" (blue lines) for rotation of instances?

Thanks!

enter image description here

Blender file here

$\endgroup$
1
  • $\begingroup$ rotate instances has a "local" flag -> did you try setting it? $\endgroup$
    – Chris
    Commented Aug 9, 2022 at 11:24

1 Answer 1

2
$\begingroup$

As @Chris already mentioned, you would essentially only need to rotate the instances on their local axis accordingly.

You can achieve this by using the node Rotate Instances after instantiation and activating Local Space there.

enter image description here

In this example I have also changed the thickness of the trunk upwards, hence the additional nodes Transform and Translate Instances.


(Blender 3.2)

$\endgroup$
2
  • $\begingroup$ Very elegant solution - thank you! The local flag didn't work before because of the sequence of the nodes, but your setup pointed me in the right direction! $\endgroup$
    – AndyZ
    Commented Aug 9, 2022 at 15:34
  • $\begingroup$ @AndyZ You're welcome! $\endgroup$
    – quellenform
    Commented Aug 9, 2022 at 15:43

You must log in to answer this question.

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