Geometry Node: 2.93 vs 3.0 how to manage density through distance [solved]

Hi!
I’ve a question.
With blender 2.93 I’ve created a simple nodes tree that let me to the hide rocks along a path.
This is the tree:

With Blender 3.0 a lot of those nodes are deprecated.
Now I’m trying to figure out how to do the same thing, but I’m missing something and I haven’t found anything online. At the moment I’m stucked here:

How can I influence the density of the instances with the distance attribute?
Any idea?

Thanks!

Did you think about using weight paint to do that instead of using the distance attribute? I believe you could have even better results with that. This topic is talking about instances scale, but you can adapt it for distribution, I think: https://blender.stackexchange.com/questions/228232/how-can-i-use-weight-paint-values-to-change-the-scale-in-geometry-nodes

I will search how to execute this in blender 3.0 cause it’s also different…

I have found the answer for how to use the weight paint for the distribution on Blender 3.0 here.
https://www.reddit.com/r/blender/comments/rgd3em/geometry_nodes_and_weight_maps_in_blender_30/

You can do it like this or you can use weight paint

1 Like

Yes. I just have found a video showing how to use the geometry proximity node. :slight_smile: Here: https://www.youtube.com/watch?v=_ytwkfkpJJ8

I’ve made a test using weight paint to control the distribution and the scale of the instances and I really like the results.

Damn! @Benny_G you’re right! (and I’ve to remember to avoid to approach these problems too late after a too long day).
Also the other solutions are good, but I want an interactive way to do that using only geonode.

The secret is to use “Poisson disk” in the distribution!
Here the tree:

Obviously there’s an other way to solve the problem, mixing weight and geonode and still interactive, this:

Here you can download the blend file with the two solutions:

density.blend (1.1 MB)

Thank you very much!

1 Like

Why do you need to use Poisson disk? It works well with random also, or am I missing something?

Really? Yesterday it seemed to not working at all! I swear.
Probably there was something wrong (too small or too big) in the file I’m working with.
Thank you, @Chanfiroly , for make me notice this.