# Combining geometry node attributes to define density?

I'm distributing trees on a hilly terrain using geometry nodes. I've got two different node setups that each create an attribute to define the density of the Point Distribute node. Each of the two works well, as expected when fed into the density slot. However I just can't combine the two attributes into one and get the expected result. I've tried all nodes that can mix attributes, I've got all kinds of results, even the invert of the one I need, but not the right one.

One attribute defines that trees should not grow where the slope is steeper than a certain value and the other attribute defines that trees should not grow on and arround the road. My thinking is that taking the minimum of the two with a math node should work - but it doesn't.

So my questions: what am I doing wrong here? What's the right way to combine together more than two attributes to achieve a complex definition of density?

Below my node setup trying to combine two attributes: not working Below my node setup with only the one attribute: works well Below my setup with only the other attribute: works well

• can you provide blend file so i can help you quicker... ;) Commented Jul 2, 2021 at 13:47
• I've uploaded the .blend file to WeTransfer: we.tl/t-foTgUthr2C Commented Jul 2, 2021 at 14:02
• your minimum solution works, your "join" was just too early and not necessary. Commented Jul 2, 2021 at 14:15
• I saw that the number of faces was doubled in the Spreadsheet with the internal "join geometry" node, so perhaps the attributes got defaulted to zero in the "other" geometry
– Emil
Commented Jul 2, 2021 at 16:47

you can do this with this node setup: (your thoughts were right and this also works with minimum - just your join node was not necessary)

Result:

My Street is a circle, i hope you forgive me this simplification.

To combine both you just had to multiply both results. That's all.