1

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?

wout
  • 1,186
  • 3
  • 11
  • 26
  • 1
    You could bake those colors to the texture which is probably unflexible, or try using Texture coordinate node instead. A bit related - https://blender.stackexchange.com/questions/7222/cycles-texture-mapping-generated-coordinates-with-world-orientation – Mr Zak Sep 07 '17 at 22:13
  • Thanks for the pointer. Adding a vector transform from world to object did the trick. – wout Sep 08 '17 at 10:21

1 Answers1

4

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

wout
  • 1,186
  • 3
  • 11
  • 26