Sub topic 1
What UV coordinates are and why meshes need them
Prerequisites
You should be comfortable navigating the Blender 3D viewport and switching between Object Mode and Edit Mode. You should also know how to select vertices, edges and faces, and have basic familiarity with materials.
What UV coordinates are
A UV coordinate is a 2D position, written as (U, V), that points to a spot on a flat image. U runs horizontally across the image and V runs vertically, both from 0 to 1.
A 3D mesh stores vertex positions, but a texture needs a image position for each part of the surface. Blender stores UV coordinates per face corner (called a loop), not per vertex. A vertex shared by several faces can therefore point to a different image spot for each face. This is why one picture can wrap around a cube without every side showing the same part of it.
import bpy
obj = bpy.context.active_object
uv_layer = obj.data.uv_layers.active
# Print the UV pair stored at the first six face corners.
for i, loop_uv in enumerate(uv_layer.data[:6]):
print(i, tuple(loop_uv.uv))Run this in the Scripting workspace with a selected mesh that already has a UV map.
Putting an image on a material with the Image Texture node
A material sets how a surface looks. In the Shader Editor, add an Image Texture node with Shift+A, then choose Texture and Image Texture. Open an image in the node, then drag from its Color output to the Base Color input of the Principled BSDF node. At render time, the node reads the object's UV map and looks up the pixel at each UV position.
Working in the UV Editor
The UV Editor shows the UV map as a flat layout. Each group of connected faces appears there as an island. Open the UV Editor from the UV Editing workspace, or split a viewport and change its type. Moving or scaling an island changes the UV coordinates of its faces. The 3D mesh does not change shape.
Exercise
A cube's top vertex is shared by three faces. How many UV pairs can that vertex have, and why?
Show answer
Up to three, one for each face corner. UV coordinates are stored per face corner, so each face can place that corner at a different spot in the image.