herr.ja Posted June 19, 2021 Share Posted June 19, 2021 Hi people! Justa superquick issue I need to keep the normal direction of the point, so all the heads will be oriented along the normal direction. BUT I would like to randomize their rotation around the Y axis, so they should not be all "looking straight up" but they should be ALL randomly rotated along each of their Y axis. I hope this explanation does make a bit sense. I am attaching the file. Thank you so much for any advice guys! rotY_issue.hipnc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted June 19, 2021 Share Posted June 19, 2021 Matt Estella wrote a great article on this: https://www.tokeru.com/cgwiki/index.php?title=JoyOfVex17#Combine_orients_with_qmultiply Quote Link to comment Share on other sites More sharing options...
animatrix Posted June 20, 2021 Share Posted June 20, 2021 Hi, You can write something like this to add some random rotation around N: float angle = radians ( fit ( rand ( @ptnum + ch("seed") ), 0, 1, -360, 360 ) ); @rot = quaternion ( angle, normalize ( @N ) ); Make sure the geometry to be copied is aligned to Z axis though. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted June 20, 2021 Share Posted June 20, 2021 Also the scatter and align-node has "rotating around normal" build in. rotate_around_axis.hipnc 1 Quote Link to comment Share on other sites More sharing options...
herr.ja Posted November 28, 2021 Author Share Posted November 28, 2021 Exactly what I was looking for! Thousand thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.