Random particle size within a fit range

   6407   1   1
User Avatar
Member
3 posts
Joined: Dec. 2016
Offline
Hey y'all,

Trying to assist some fellow VFX students for a group project with a grain simulation underwater. I got stuck on trying to create a random expression for my grain particles pscale within a fit range. Since it's going to be very fine sand I want the particles to be really small. Or should it all just be upscaled in Houdini instead?

Guess I also could ask if it would be possible to give all particles a random geometry from a sphere with mountain applied? I guess the way to go about that would be to create a set of different ‘grains’ and then instance with copy stamp?

Only been tinkering with Houdini for the last 2-3 weeks so everything is still really new and lots to take in.

Thanks for any help and/or insight.
User Avatar
Member
3 posts
Joined: Dec. 2016
Offline
Got some help from a former co-worker studying programming so solved it with @pscale = fit01(rand(@id), 0.0015, 0.0035);

Going to look into copy/stamp/instancing tutorial/guides for the second part.
  • Quick Links