Question: scatter system with weights in Houdini?!

   2684   6   0
User Avatar
Member
78 posts
Joined: Aug. 2013
Offline
Is there a scatter solution available in Houdini to scatter a collection of assets using weighted distribution? I mean something like… out of 1000 total instances I want asset A to have 500, asset B 300, asset C 200.
Thanks.
User Avatar
Staff
3464 posts
Joined: July 2005
Offline
https://www.sidefx.com/tutorials/h17-terrain-master-class-part-02-heightfield-scatter/ [www.sidefx.com]

there are a few more tutorials that talk about scattering
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
833 posts
Joined: Jan. 2018
Offline
You can also do it with MOPs relatively easily:

https://www.motionoperators.com [www.motionoperators.com]
>>Kays
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
User Avatar
Member
8043 posts
Joined: Sept. 2011
Offline
No need for 3rd party packages, all you need is built in.

Attribute randomize in “custom discrete” distribution is what you want. Configure different weights for each token value to control object scattering. Use the foreach loop to assign copies based on the token values.
User Avatar
Member
899 posts
Joined: Feb. 2016
Offline
jsmack
No need for 3rd party packages, all you need is built in.

Attribute randomize in “custom discrete” distribution is what you want. Configure different weights for each token value to control object scattering. Use the foreach loop to assign copies based on the token values.


is that a new addition in 17.5?
I never saw it
User Avatar
Member
8043 posts
Joined: Sept. 2011
Offline
I think since attrib randomize was added–not sure when.
User Avatar
Member
874 posts
Joined: Oct. 2008
Offline
Andr
jsmack
No need for 3rd party packages, all you need is built in.

Attribute randomize in “custom discrete” distribution is what you want. Configure different weights for each token value to control object scattering. Use the foreach loop to assign copies based on the token values.


is that a new addition in 17.5?
I never saw it

It's been there for a few versions I think but hardly anybody seems to know about it. I use it a lot but I'd have to say you need to be supercareful because occasionally it creates bad values, NaNs I think, and it messes up your setup in a way that makes it hard to track down what's gone wrong.
--
Jobless
  • Quick Links