Question: scatter system with weights in Houdini?!

   2605   6   0
User Avatar
Member
71 posts
Joined: 8月 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
スタッフ
3459 posts
Joined: 7月 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: 1月 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
8026 posts
Joined: 9月 2011
Online
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: 2月 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
8026 posts
Joined: 9月 2011
Online
I think since attrib randomize was added–not sure when.
User Avatar
Member
874 posts
Joined: 10月 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