Can I scatter Object based on a mask?

Quick question:

Is there a way, to scatter objects, either with particles or best with geo nodes, using a BW mask in the shader editor?

I have a base image as a texture, with darker and brighter spots. Using a color ramp, I have isolated all darker parts and made them white, while the rest is black. Basically giving me a BW mask for all the darker parts.
I know want to scatter objects on these, without having to manually paint a vertex group for that. Is that possible?

If you’re using GN for scattering the particles, you can then use the mask image directly there…

1 Like

This is exactly the thing I’m looking for, but somehow it does not work:

So I’m using a satelite image of some fields and forests. I isolated the forest using a color ramp, and now want to scatter trees ontop. You can see the mask I baked on the right, but somehow it still scatters ontop of the whole plane.

Is there a way to preview the effect of individual nodes, to debug this?

And does the plane need to be subdivided?

Just tried subdividing the plane a bunch, which seems to do the trick

Yup, I also have the plane subdivided 3 or 4 times. :slight_smile:
Also, having a less noisy mask can make it look better, so does changing the multiply value to a lower or higher number, to scale the density.