1
$\begingroup$

In continuation to this questions:

Visualise texture based on direction a surface is pointing using Cycles

Mapping the XYZ colors to faces based on their normal orientation works great. But if I rotate the object, the normal values change. This is even the case when the object is parented to an empty.

Is there a way to lock the normals to the local rotation of the object? Or is this always calculated based on te global values?

$\endgroup$
2
  • 1
    $\begingroup$ You could bake those colors to the texture which is probably unflexible, or try using Texture coordinate node instead. A bit related - blender.stackexchange.com/questions/7222/… $\endgroup$
    – Mr Zak
    Commented Sep 7, 2017 at 22:13
  • $\begingroup$ Thanks for the pointer. Adding a vector transform from world to object did the trick. $\endgroup$
    – wout
    Commented Sep 8, 2017 at 10:21

1 Answer 1

4
$\begingroup$

Thanks to Mr Zak for the pointer, I started fiddling with the vector transform and that gave me the desired result.

enter image description here

This is without the vector transform:

enter image description here

And this is with vector transform:

enter image description here

$\endgroup$

You must log in to answer this question.

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