Geometry Node Material Selections

Hey All!

Can someone help me figure this out. Im currently learning geometry Nodes. This is something I did a couple weeks ago. But I didn’t save the Blender file of course and I’m trying reverse engineer this effect.

The basic idea is this. Im trying to figure out how I can use the displacement of a mesh to drive the change from one material (A) to another material (B). I included my file. I want to try an achieve this effect through GeoNodes.

The main object is black (Mat A) and Id like to get the displaced area to red (Mat B). Thanks in advance!

GeoDisplace_01.blend (1.2 MB)

Zach

Step 1: Expose the length of the displacement as an attribute:

image

Step 2: use the attribute node in the shader editor to blend between two shaders:


GeoDisplace_02.blend (1.1 MB)

4 Likes

I’d do the mixing in your shader:

GeoDisplace_01-blend.blend (1.2 MB)

This isn’t exactly what you are looking for, but it should get you pointed in the right direction

The general process is to output an additional value from your geonodes and map it to an attribute, which you can access within your shader

edit: @LordoftheFleas solution is more accurate, run with that one!

3 Likes

Much appreciated! Thanks for the quick work on this! @LordoftheFleas and @SterlingRoth

Zach

1 Like