Hi, I am somewhat new to Houdini and I am working on a school project and I can't figure out how to randomly scatter, rotate and scale geometry inside another geometry object. I am trying to replicate the look of all the small molecules in the background of the image below:
Basically, I have the molecules modelled but I can't get them to be randomly in there ( so I looks more natural).
Thanks!
How to randomly scatter geometry inside another geometry
2252 1 1- CreativeWaves
- Member
- 50 posts
- Joined: May 2018
- Offline
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
You can do it using an isooffset sop which creates an internal volume inside a sphere for example, followed by a scatter sop which creates points scattered through the volume, and then copy to points your geo to these points.
Or you can use pointsfromvolume sop which creates directly points inside a volume (same sphere for example) and then use copy to points.
To randomize rotation and scale the easiest way is to use an attribute randomize sop, one for the orient attribute, and one for the pscale attribute.
Look at the file I attached
Or you can use pointsfromvolume sop which creates directly points inside a volume (same sphere for example) and then use copy to points.
To randomize rotation and scale the easiest way is to use an attribute randomize sop, one for the orient attribute, and one for the pscale attribute.
Look at the file I attached
Edited by madrenderman - Sept. 25, 2018 21:42:03
-
- Quick Links