Random Rotation for each Primitive

   7820   3   1
User Avatar
Member
3 posts
Joined: Feb. 2015
Offline
Hey Everyone!

Im kind of new to Houdini and I'm just trying to mess around with different things I can do with geo. I have this idea to take a polygon sphere and break out the primitives to be able to add rand rotation values to each primitive procedurally.

I have basically gotten the sphere created., I used a facet sop with unique points checked to separate all the primitives. Now I am struggling trying to find a way to be able to add a random rotation expression to each primitive individually so that each primitive rotates differently. In the end I want to create this sphere with each face vibrating differently.

Any Advice?
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Try the primitive node, check “Do transformation” and put
rand(@primnum)*45
in the rotation fields.
Edited by Konstantin Magnus - June 27, 2017 03:56:56
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
3 posts
Joined: Feb. 2015
Offline
Konstantin Magnus
Try primitive wrangle, check “Do transformation” and put
rand(@primnum)*45
in the rotation fields.

So that seemed to work to be able to rotate the prims seperately, one more question, is there a way to set their pivot points to the center of each primitive instead of the centroid?
User Avatar
Member
2038 posts
Joined: Sept. 2015
Offline
I've attached a file showing one way to do this using wrangles.

Attachments:
Rotate Prims from Sphere.hiplc (66.3 KB)

  • Quick Links