[Sidefx-houdini-list] How to scatter points based on a probability map
dogboy_l at yahoo.com
Tue Jul 22 14:49:03 EDT 2008
Scatter depends on the number of points, so you will get different result, but the distribution will still be the same. Scatter looks at the area of each poly, uses that to find the total area, then looks at each poly, finds the relative area that poly has w.r.t. the area of the full geometry, then scatters that fraction of points onto it. So if you applied your map as a primitive attribute to each poly, then used that attribute in the scatter, you would get the results you want. The more finely tesselated your geometry, the more accurate the results.
Or, if you want to implement it in the hdk, I just explained the algorithm above. But I think it would be easier to use scatter.
--- On Tue, 7/22/08, Jaideep Khadilkar <iamjaideep80 at yahoo.com> wrote:
I want to scatter some points on a plane, depending on a density map or
probability map. The map will be black and white, white is probability
1 and black probability 0. Now I want to know the method or algorithm
to do this. I know that, we can use attribute in scatter sop, but the detail
depends on the number of points in the source geometry. I want to do it using
Another method to do that is using fur sop, and keeping only the root points.
But I want to use the method in my own HDK, so if you can provide the
algorithm, I can code it.
Explore your hobbies and interests. Go to
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list