Capture Attribute in Geometry node to get height map texture of a mesh

Hello!
Noob at Blender, and struggling a bit.
I want to extrapolate a 2D texture rappresenting the height map I’m using to displace a mesh from the geometry node editor. I tried to implement a Capture Attribute node in my GeoNode setup.
But when I try to get the attribute in the shader editor, this is what I get

I tried to change the captured data type, but no luck with that, clearely I’m doing something wrong and cannot figure out what it is.

Hi there and welcome!

You need to Store Named Attribute to be able to use it:

Also you can just pass the Z component as a float value - no need to use the entire vector if you’re going to separate it again later anyway.

4 Likes

Oh God, it was that simple!
Thank you very much my friend!

1 Like