UV-unwrapping for beginners

Textures are 2 dimensional images. Meshes are 3 dimensional objects. When applying a texture to a mesh, we have to reconcile this dimensional gap. We do that by mapping the 3d mesh to a 2d image. This map, we then use to instruct the texture as to how it should apply itself onto the model.

Cube primitive

This is called a UV-map. They’re quite important. As we’re essentially ‘unfolding’ the 3d model to become 2d (think of how you could unfold a cube, this is what it’d look like:
f7cf7b2bb82f57f8e8f8c090cb74cfc3
Here’s the corresponding UV-map, which is automatically added because the cube is a primitive. We won’t be let off this easy for much longer.

d8533aa596d4158e6f6d61c31ce9897d

A 2D mirror

The UV map reflects it’s changes over to the mesh, and the mesh reflects it’s changes over to the UV map.
Textures are square, so it’s actually impossible to perfectly fill out the map, but that’s okay.
Now, the UV map is displaying all 6 faces of the cube. If I now add a texture to the cube, the texture will use the UV map to transform itself onto the mesh. Here I’ve added some colourful blobs to the 2d texture.
f2d95d241d77c3ad454d4a6c8bce6bee

Every face of this UV-map/cube can individually be moved, resized, rotated. The texture continues to infinity, repeating itself. I’m going to make the faces smaller on the UV map, so that the blobs take up more of the faces on the mesh. As you can see, the unfolded mesh didn’t change, because it has it’s own UV faces, which are overlapping the cube’s faces. This is no problem, in fact it’s memory efficient, if you don’t mind reusing the texture.
22d98054cd56ae0df24af41bc6166346

That’s ‘what’, now ‘how’

To make the UV-map, we must tell the 3D software where it can cut the mesh open. These are called seams. And the seams are then used to ‘unwrap’ the mesh. The texture doesn’t continue over loose areas on the UV map, so where a seam is placed there can be a disconnect between the texture on either side of it.

If we look at the unfolded cube, the outer edge is where all the seams were.
640d7701d076af98ed6ff2ea6ed4dd24
Refolded:
83a9e798f1f65c2ee04a0e53a8a2986f
And tada! … upside down. No worries: we need to unwrap the mesh still. Select all faces, hit unwrap [U] and hit unwrap.
91def43c5a7a96fce981772ca82a426e
dfcc29c7e8e1936792b143407f498cc1

Right, on to a real mesh. For the texture, we’re going to be selecting the UV grid.
ef0153d534b61cd51ae44a0564242f6e
7a589ce5955bdcc2d4e24bce27fd8de8

The 3d mesh should have squares, but instead they’re warped, elongated, and blurry. Until all the squares are squares, the UV-map is flawed.

Let’s start by marking some of the 90 degree angles as seams.

Hitting live unwrap will reflect our changes immediately, instead of needing to unwrap.
025fd47e6208d8bd1cc902e34c7def96

Now this is by no means a perfect unwrap, but it’s fine. There’s quite some unused space, and it’s a bit crooked.

644cf45f4c1d1b180ff5de1ee91bcb2e

To show the importance of the UV map, I’m going to stretch out some of the faces.
68d993afc3e6012f241473f212122660

Roblox automatically UV-unwraps objects for it’s materials, so it’ll ignore our UV-maps. This is sometimes good, if our map is bad, and sometimes it’s bad, because it also can make for bad maps.

So here a Roblox material
76567dc86a46eb2f755935417096010b
Here a custom material
bebb1846fd8486d9c0f1a3df86329527
Two things: the UV map is rotated, and we’ve gotta fix that stretch.

Simple enough, just rotate the UV and re-export.

208f3154e1d3376e4ce789e8d48cbaf9
I added in a version where I scaled the bevel’s UVs down to 0, so that it just takes up 1 color.

Hope these tips help make the very annoying field of UV-unwrapping a little bit more bearable.

13 Likes

wow! SWEET! thanks for showing us this. UV makes me crazy sometimes!

1 Like

When you put it on a part / mesh, do you have suggestion, as to the color of the mesh, like make it white… and the type of material? like Metal, etc…

1 Like

Well, the closest physically matching thing. If you have bricks, pick something made from stone. If you have metal, pick something reflective

1 Like

but why does it mater, except, physical properties …

what Lighting do you like to use? Future?

1 Like

Well, if you use SurfaceMaterials it actually makes a difference, for some reason it still has a little effect on it. I like to use Future, yes.

1 Like

Nevermind. Now that you asked this, I tried to identify exactly what is being affected still. It’s only the ambient occlusions, when the material is forcefield.

1 Like

Ok, I usually use metal, and future, with lighting around 6.9, then surface lights to highlight things …

1 Like