Does there is a way to show the uvs of a mesh as a 2d texture?

Does there is a way to show the uvs of a mesh as a 2d texture?

Do you have examples of how that would look? and what would you do with it, do you need it for debugging or a specific rendering technique?

Some time ago @ain posted a solution for visualizing normals in the chat.
I adapted that to UVs but have no idea whatsoever if it is “correct” / supposed to look that way …

UV.7z (4.6 MB)

2 Likes

This does it too obviously.

BTW the Vector4(Vector2) node is part of the addons but I didn’t want to add it as depedency.

1 Like

I understood the question like this:


DrawUVMap.zip (3.8 KB)

or like this, as there’s no overlapping uvs in the contained meshes it seems


DrawUVMap_Textured.zip (4.4 KB)

6 Likes

Thanks Bjoern but readme got it. Drawuvmapshader is exactly what i need!

1 Like