The "points to volume" etc in Geometry Nodes has a density input. This value is a single value, rather than a field.

Is it even possible to store and use a regional density ? I've tried everything I can think of. -Ideally I'd like to set a color and density value and retrieve that later in the shader editor for the principled volume.

It's driving me nuts that I can only get a "flat" density and color volume from geometry nodes.


1 Answer 1


You can only use volume cube for that. For the mesh detection you can use raycast for example:

enter image description here

  • $\begingroup$ THAT is a fascinating solution. Thank you! $\endgroup$ Nov 26, 2023 at 9:41
  • $\begingroup$ Great solution but why must it be that difficult and counter intuitive? Seems like the volume density input should be able to handle fields for meshes consistently not just for volume cubes. $\endgroup$ Jan 4 at 10:32
  • $\begingroup$ It is a completely different domains of information. It is like Vector graphics and raster graphics, seems to be designed to make one thing, but converting from one type to other is quite tricky $\endgroup$
    – Crantisz
    Jan 4 at 11:44
  • $\begingroup$ Okay I used a capture attribute set to vector connecting position node output to capture attribute input and then passed that vector attribute from capture attribute output to attribute statistic and sent min and max outputs to volume cube min and max inputs to have cube size adjust to mesh size $\endgroup$ Jan 8 at 15:28

You must log in to answer this question.

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