Meshes, Vertices & Normals
You don't need to model like an artist, but you do need to know what a mesh is once it reaches the GPU, because that decides how much memory it costs, how it shades and why an "800-triangle" model can turn out to have three times more vertices than you expected.
What a mesh contains
| Part | What it is | Typical size per element |
|---|---|---|
| Vertex positions | points in the model's local space | 3 floats = 12 bytes |
| Normals | the direction each vertex "faces", used for lighting | 12 bytes (often compressed) |
| Tangents | needed for normal maps (see PBR Texture Sets) | 16 bytes |
| UVs | 2D texture coordinates (see UVs & Texture Memory) | 8 bytes per UV set |
| Indices | three per triangle, pointing into the vertex list | 2 bytes (16-bit) or 4 bytes (32-bit) |
| Skin weights | which bones move each vertex, for skeletal meshes | 4 bone indices + 4 weights |
GPUs draw triangles. Quads and n-gons in Blender are triangulated on export or import, so the number that matters for budgets is the triangle count, not the face count your modelling tool shows.
Normals and winding
A face normal is perpendicular to a triangle. You get it from the cross product of two edges; the order of the three vertices (the winding) decides which side is the front. Engines cull back faces by default, so a triangle wound the wrong way is invisible from the front: the classic "my model has holes" bug, which really is "my normals are flipped".
def sub(a, b): return (a[0] - b[0], a[1] - b[1], a[2] - b[2])
def cross(a, b): return (a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0])
def normalize(v):
length = (v[0] ** 2 + v[1] ** 2 + v[2] ** 2) ** 0.5
return tuple(round(c / length, 3) + 0.0 for c in v)
def face_normal(p0, p1, p2):
return normalize(cross(sub(p1, p0), sub(p2, p0)))
floor_ccw = [(0, 0, 0), (0, 0, 1), (1, 0, 0)] # counter-clockwise seen from above (+Y)
floor_cw = [(0, 0, 0), (1, 0, 0), (0, 0, 1)] # same triangle, opposite winding
ramp = [(0, 0, 0), (0, 1, 1), (1, 0, 0)]
print("floor, CCW :", face_normal(*floor_ccw))
print("floor, CW :", face_normal(*floor_cw), "<- points down: culled when seen from above")
print("ramp :", face_normal(*ramp))floor, CCW : (0.0, 1.0, 0.0)
floor, CW : (0.0, -1.0, 0.0) <- points down: culled when seen from above
ramp : (0.0, 0.707, -0.707)
Engines differ in which winding counts as "front" (OpenGL-style APIs default to counter-clockwise, Direct3D to clockwise), but importers handle that for you. What they can't fix is a mesh whose faces are inconsistently wound. In Blender, turn on the Face Orientation overlay (blue = front, red = back) and use Mesh → Normals → Recalculate Outside before exporting.
Why vertex counts grow: splits
A GPU vertex is a combination of position, normal, UV and other attributes. If two faces meet at a corner but need different normals (a hard edge) or different UVs (a UV seam), that corner becomes several vertices. A cube shows it well:
corners = 8
faces = 6
tris = faces * 2
smooth = corners # one normal per corner, averaged: looks like a blob
flat = faces * 4 # each face needs its own normal at its 4 corners
for label, verts in [("smooth-shaded cube", smooth), ("flat-shaded cube", flat)]:
vbytes = verts * (12 + 12 + 8) # position + normal + one UV set
ibytes = tris * 3 * 2 # 16-bit indices
print(f"{label:<19} {tris} tris, {verts:2} verts, {vbytes + ibytes} bytes")
print()
print("vertex/triangle ratio, flat cube:", round(flat / tris, 2))smooth-shaded cube 12 tris, 8 verts, 328 bytes
flat-shaded cube 12 tris, 24 verts, 840 bytes
vertex/triangle ratio, flat cube: 2.0
A typical well-made game mesh has roughly 0.5–1 vertices per triangle once welded; a ratio well above that means many hard edges or UV seams. That's why artists use smoothing groups / sharp edges deliberately and why normal maps (which let a low-poly mesh with smooth normals look detailed) exist.
Memory per mesh
def mesh_bytes(verts, tris, uv_sets=1, tangents=True, skinned=False, index_bytes=2):
per_vertex = 12 + 12 + 8 * uv_sets + (16 if tangents else 0) + (20 if skinned else 0)
return verts * per_vertex + tris * 3 * index_bytes
hero = mesh_bytes(verts=18_000, tris=24_000, uv_sets=2, skinned=True, index_bytes=4)
crate = mesh_bytes(verts=120, tris=96)
print(f"hero (skinned) : {hero / 1024:8.1f} KiB")
print(f"crate : {crate / 1024:8.1f} KiB")
print(f"500 crates, no instancing: {500 * crate / 1024 / 1024:.2f} MiB")
print("16-bit indices address at most", 2 ** 16, "vertices per mesh")hero (skinned) : 1617.2 KiB
crate : 6.2 KiB
500 crates, no instancing: 3.02 MiB
16-bit indices address at most 65536 vertices per mesh
The skin size (4 bone indices as bytes + 4 float weights = 20 bytes) is one common layout; engines compress attributes in many ways, so treat this as an upper-bound estimate. The point to remember: meshes are usually much smaller than their textures, but vertex counts drive the per-frame cost of skinning and vertex shading.
Skeletal meshes in one paragraph
A skeletal mesh adds a skeleton (a hierarchy of bones), a bind pose, and per-vertex weights that say how strongly each bone pulls each vertex. Most engines limit a vertex to 4 influences by default (Unity and Unreal allow more as a quality setting). Animation clips then store bone transforms over time. The math is in Game Physics & Animation; for production, the rules are: one consistent skeleton per character family, no scale keys unless you need them, and a "rest pose" that matches what the engine expects.
Test yourself
A triangle is invisible from the front in the engine but visible from behind. What is the likely cause?
- Missing texture
- Its winding is reversed, so its normal points the wrong way and it is back-face culled
- Too many vertices
- Wrong LOD
Why does a flat-shaded cube have 24 vertices instead of 8?
- Triangulation adds vertices
- Each corner needs a different normal for each of its three faces, so it is split
- UVs always double the count
- The engine adds them for culling
Which count should a mesh budget be written in?
- Quads
- N-gons
- Triangles
- Edges