Sub topic 11
Basic Materials and UV Unwrapping
This chapter assumes that you can navigate Blender, switch between Object Mode and Edit Mode, select mesh elements, and use basic transforms. It also assumes that your prop has been checked for major topology and shading problems. Materials describe how surfaces look. UV unwrapping creates a flat 2D layout of a 3D mesh so you can place image textures on it.
Plan the material structure
A hard-surface prop usually needs several material types rather than one material for the whole object. For example, a sci-fi panel might use painted metal for the body, darker metal for recessed parts, rubber for grips, and glass for a display.
Create separate materials when a surface needs a different combination of:
- Base color
- Metallic response
- Roughness
- Texture or decal placement
The Principled BSDF shader is a general-purpose shader for these properties. Metallic values near 1 make a surface behave like metal. Roughness controls how broad or sharp its highlights appear. A low value looks polished, while a high value looks matte.
| Surface | Metallic | Roughness | Typical use |
|---|---|---|---|
| Painted metal | 0.7 | 0.35 | Main casing |
| Bare metal | 1.0 | 0.2 | Edges and hardware |
| Rubber | 0.0 | 0.75 | Handles and feet |
| Glass | 0.0 | 0.08 | Displays and lenses |
Assign materials by selecting faces in Edit Mode. Select the object, open Material Properties, create a material slot, choose a material, select the required faces, and press Assign. Use clear names such as BodyPainted, DarkMetal, Rubber, and Glass.
Build a simple material
You can create a basic painted-metal material with the Shader Editor. The following script applies a material to the active mesh object and sets its Principled BSDF values.
import bpy
obj = bpy.context.active_object
if obj is None or obj.type != 'MESH':
raise RuntimeError("Select a mesh object before running this script.")
material = bpy.data.materials.get("Body_Painted")
if material is None:
material = bpy.data.materials.new("Body_Painted")
material.use_nodes = True
nodes = material.node_tree.nodes
principled = nodes.get("Principled BSDF")
if principled is None:
raise RuntimeError("The material does not contain a Principled BSDF node.")
principled.inputs["Base Color"].default_value = (0.12, 0.16, 0.2, 1.0)
principled.inputs["Metallic"].default_value = 0.7
principled.inputs["Roughness"].default_value = 0.35
if obj.data.materials.get(material.name) is None:
obj.data.materials.append(material)The color values use red, green, blue, and alpha channels from 0 to 1. These values create a dark blue-gray surface. Adjust them to match the reference images and intended finish.
Mark seams for UV unwrapping
UV coordinates map mesh locations to positions in a flat image. A seam is an edge where Blender is allowed to split that flat layout. Seams should follow places where a real object would have joints, corners, or hidden cuts.
In Edit Mode:
- Switch to Edge Select.
- Select an edge loop along the least visible side of the part.
- Add seams with Ctrl-E, then Mark Seam.
- Add seams around areas that must unfold flat, such as the ends of a cylinder.
- Select all faces and choose UV, Unwrap.
Avoid placing a single seam across the most visible front panel when you can place it along a side or underside. For box-shaped parts, mark seams around one side and along the back. For cylinders, add a lengthwise seam and seams around the caps.
Open the UV Editing workspace to inspect the result. Long, thin islands indicate stretching or an unsuitable seam path. Overlapping islands can be intentional for repeated parts, but they prevent unique paint or dirt from appearing separately on each island.
Check scale and texel density
Texel density is the amount of texture resolution assigned to a real-world area. Keep similar parts at similar density. A large casing should not receive a tiny UV island while a small screw receives most of the image.
In the UV Editor, scale islands so related parts have consistent size. Pack the islands with adequate spacing. A margin prevents colors from neighboring islands bleeding into each other during filtering.
The model should also have applied object scale before precise UV work. In Object Mode, use Ctrl-A and choose Scale. Unapplied scale can make bevel widths, procedural textures, and UV proportions behave unexpectedly.
Workflow overview
Exercise
A large front panel has severe texture stretching after unwrapping. What should you inspect first?
Show answer
Inspect the seam layout and the UV island shape. Add or move seams so the panel can unfold more evenly, then unwrap it again and compare the result in the UV Editor.