4
$\begingroup$

I've been searching for a way to rotate instances with a 180º increment. I found a previous solution to this problem

https://www.reddit.com/r/blenderhelp/comments/lwgzsq/random_90_rotation_increments_in_geometry_nodes/

but I don't know how to get it with the new geometry nodes. The most I got is

90º increment

but as you can see I only get a simple random rotation not what I need. Any idea?

Thanks

$\endgroup$
1
  • $\begingroup$ Rule of thumb is if there is no ° on the right of the field, you have to use radians. If you don't want to do trigonometry which is understandable, the MATH node mode can be set to "to radians", and then you can input a value in degrees. $\endgroup$
    – Gorgious
    Commented Mar 8, 2022 at 16:14

2 Answers 2

4
$\begingroup$

try this node setup:

enter image description here

The random value give a 0 or 1 with a 50% chance.

shader:

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ So that's the way I have to use Pi. Thanks! $\endgroup$
    – Víctor GV
    Commented Mar 8, 2022 at 15:52
  • 1
    $\begingroup$ you are welcome $\endgroup$
    – Chris
    Commented Mar 8, 2022 at 15:53
4
$\begingroup$

Get a 0 or 1 random output, multiply it by pi, and add it to your desired base rotation:

enter image description here

$\endgroup$

You must log in to answer this question.

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