Search - User list
Full Version: Scatter points density based on color
Root » Houdini Learning Materials » Scatter points density based on color
gswartz
I have an iso offset node feeding into a scatter points node. I wanted to use the color attribute of the geometry node (which I had changed with a couple of paint nodes) to feed the density of the scatter points. But the color attributes are lost in the iso offset. Being new to houdini I have no idea how to get the Cd attribute after the paint nodes into the scatter points node to influence the density. Any ideas how to make this work? Thanks.
jsmack
For scattering from volumes, the density of points is determined by the density of at each point of a single voxel grid. The iso offset is creating a density volume that is constant inside your geometry. To drive the density from an attribute on the geometry, a volumetric representation of the attribute is required. If you prefer working with houdini volumes, the node, attribute from volume can generate a volume from an attribute on your source mesh, and optionally multiply by your existing volume – this will preserve the edge blending of your iso-offset. Alternatively, the VDB toolset will allow for similar construction of volumes, often more efficiently than Houdini volumes. You will need to use a vdb combine node to perform the scale by density however.

A point of contention for both methods is that your painted attribute is only defined as a surface, how the value is extended into the volume is not well defined, and most operations will either streak the surface value into the interior along the normal/gradient direction, or simply leave the interior undefined (zero).
gswartz
Ok thanks. So the purpose of the volume is to create the points for a voronoi fracture node. Is there a better way to be able to control the fracture so that some spots have much smaller pieces and others have larger?
Mohanpugaz
you could scatter points separately on the geo using color and scatter points using volume separately then merge both using merge sop then feed it into the voronoi fracture node so that your painted density will remain same in the surface. for scattering inside the volume you could add noise to the volume using volume vop and then use scatter for noisy scattering.
Isaac Katz
Mohanpugaz
you could scatter points separately on the geo using color

Can you explain how this would be done? I only see Generate by Density option on the Scatter node. Thanks!
Mohanpugaz
Isaac Katz
Can you explain how this would be done? I only see Generate by Density option on the Scatter node. Thanks


simple example for scattering based on color this doesnt have solution to the original post, this is just for Isaac's question
Mohanpugaz
Isaac Katz
Mohanpugaz
Isaac Katz
Can you explain how this would be done? I only see Generate by Density option on the Scatter node. Thanks


simple example for scattering based on color this doesnt have solution to the original post, this is just for Isaac's question
Image Not Found

Image Not Found

Thanks!! so simple
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.