How to distribute objects ONLY on vertex groups in geometry nodes? Thought this would be easy but have been struggling so much with this.
I have created vertex groups (indicated with red color) on a big terrain plane and now I'm trying to distribute objects only inside those areas. I tried adding the vertex group in the Density Attribute but it seems that it's using the weight of the group and it does not have a hard edge so the objects are leaking outside of the area.
Any ideas how to achieve this easily?
OK It's the final edit. I promise
This method works in blender 2.93 Alpha(I don't know about version 2.92)
All you have to do is set the density attribute to material_index and voila your work is done, no weight paint required, it assigns density on the basis of material used.
Screenshot: