Search code examples
opengl3dmaya

What is coresponding relation about colors and texture coordinates in 3D software?


In many 3D softwares there is a panel to display texture coordinates in geometry, like this

enter image description here

How to map the different color on geometry to texture coordinates?

Where can I find information about it?


Solution

  • Texture coordiates go from (0,0) to (1, 1). They're 2D vectors and colors are often represented by a 3D vector (red, green, blue). What you get is your UV coordinate as a color (r : UV.x, g: UV.y , 0).