I have a .obj mesh loaded with given UV coordinates. I'd like to color the mesh using its UV coordinates, similarly to this image. I think the correct way is to first compute a scalar out of the uv coordinates, something like u*v, and then connect that scalar to the hue value of a HSV node. Thing is, I don't know which module can I use to take the UV Map's output and turn it into a scalar.


You can get the UV coordinates from a Texture Coordinates or from an Attribute Node, separate the three components of the vector using a Separate RGB node, and use this to map colors to your BSDF.

Colors from UVs node setup

Colors from UVs result

| improve this answer | |
  • $\begingroup$ Suggest you remove the muted node from the screenshot, in case it confuses anyone $\endgroup$ – Greg Zaal Jul 3 '14 at 14:00
  • 1
    $\begingroup$ I left it intentionally, because OP wanted to multiply the U and V coordinates together, but I muted it because it looked like it wasn't needed to reproduce the reference picture. $\endgroup$ – Pisurquatre Jul 3 '14 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.