2
$\begingroup$

I'm experimenting with displacement maps in the Shader Editor using this guide: https://3dmodels.org/blog/displacement-maps-in-blender-tutorial/

What is the best way to apply it to only a part of the object or a specific vertex group?

from: https://3dmodels.org/blog/displacement-maps-in-blender-tutorial/

$\endgroup$

1 Answer 1

4
$\begingroup$

What you can use instead of vertex groups is a Color Attribute, which you can reference directly in the Shader editor via the Color Attribute node.

  1. Add a color attribute
  2. Enter Vertex Paint mode
  3. Paint the areas you want affected. You can use white for the areas you want affected and black for areas you want unaffected.
  4. In your shader, add a Color Attribute node and select the Color attribute you created in step 1
  5. Use a Vector Math node to multiply its color with the texture you're using to displace.

enter image description here

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Thanks for taking the time for such a detailed answer! It works great :) I'm experimenting with placing the displacement node between the noise texture and the vector math node to prevent the displacement node from affecting the rest of the object. $\endgroup$
    – Ocon Ocon
    Commented Sep 11 at 15:06
  • 1
    $\begingroup$ @Ocon Ocon if the answer is correct, mark it as such $\endgroup$
    – moonboots
    Commented Sep 14 at 9:48

You must log in to answer this question.

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