3
$\begingroup$

Is it possible to distribute points in the geometry nodes based on height like it is with colors in the material nodes?

1

2

3

I have this terrain and want points distributed on the blue color. I don't think its possible to have the color as a weight so I thought to just replicate the same node process in the geo nodes

4

but that doesn't seem to work either since the density only works if I use an attribute. any suggestions?

this worked:

this worked

$\endgroup$
8
  • $\begingroup$ If you wanna post images, you should just paste them in here. And please post images we can read. And not that low quality that we can’t read anything. $\endgroup$
    – Chris
    Commented Jun 12, 2021 at 7:15
  • $\begingroup$ I didn't know links weren't allowed. But i don't get your issue with the resolution? If you click on the image you can read it just fine. Rhe issue is with this website showing the images in small windows. It is the exact same resolution as i see it in blender. i could have zoomed in on the landscape but the datails of it aren't that important. but on the nodes i dont know how i could have increased the res while still showing everything. $\endgroup$ Commented Jun 12, 2021 at 7:49
  • $\begingroup$ Now quality is great. Thank you $\endgroup$
    – Chris
    Commented Jun 12, 2021 at 8:23
  • 1
    $\begingroup$ "Now quality is great. Thank you" i changed nothing lol but i think i figured something out, i thought it was impossible because i couldn't find anything after like 15 min of searching $\endgroup$ Commented Jun 12, 2021 at 9:12
  • 1
    $\begingroup$ Please don't write solved as part of the title. If you found a solution for your problem please write it on the answers section and mark it as accepted there. Read: what does it mean when an answer is accepted? $\endgroup$
    – brockmann
    Commented Jun 12, 2021 at 15:25

1 Answer 1

6
$\begingroup$

You can use the object space Z coordinate of geometry as an attribute to influence other attributes, if you split it out of the given position attribute. Here, it's called pz.

enter image description here

In this case the .5->1 range is soft-mapped to 0->1, and the 1->1.5 range is soft-mapped to 1->0. The results are put into h_pz and l_pz. When the minimum of those is taken, it's a smooth 0->1->0 distribution, centered on Z=1.That's put into the d attribute.

That can be multiplied by some factor, and, in turn, used to control the density of a point distribution.

enter image description here

$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .