Foundations

Topology for Real-Time 3D: What Actually Matters

Learn how manifold structure, edge flow, triangulation, seams, deformation, and GPU vertex data define production-ready real-time topology.

Good topology is topology that survives the operations an asset must perform. For a static scanned rock, that means a closed or intentionally open surface, stable shading, efficient reduction, and no distracting artifacts. For a character's shoulder, it means edge placement that preserves volume through a wide range of poses. For a GLB product model, it also means predictable triangulation, UV seams, material boundaries, and exported vertex counts.

There is no universal requirement that a production mesh contain only quads. GPUs render triangles, and glTF mesh primitives commonly deliver indexed triangles. Quads remain valuable as an authoring structure because they support loop selection, subdivision, and readable deformation flow. The correct topology is determined by the next operations, not by a screenshot of a wireframe.

Topology describes connectivity#

Geometry gives positions; topology describes how those positions connect into edges and faces. Two meshes can occupy the same shape while having different connectivity. That difference controls whether an edge loop can travel across the surface, how a subdivision modifier creates new points, where a simplifier can collapse edges, and how triangles deform under a skeleton.

Important structural terms include:

  • manifold edge: normally shared by exactly two faces in a closed surface;
  • boundary edge: shared by one face, deliberate on an open surface;
  • non-manifold edge: often shared by zero or more than two faces;
  • isolated element: a vertex or edge not contributing to the intended surface;
  • degenerate triangle: three indices whose area is zero or nearly zero;
  • duplicate face: overlapping topology that can flicker or confuse tools;
  • winding: vertex order that determines the front orientation;
  • connected component: a region reachable through shared topology.

These are diagnostic categories, not automatic verdicts. A single-sided leaf intentionally has a boundary. A T-junction in a repair mesh may be unacceptable, while disconnected buttons on a shirt can be intentional. An audit should report the structure and let asset rules decide.

Manifoldness and watertightness#

A watertight solid has no boundary through which its interior leaks. This matters for 3D printing, volume calculation, voxelization, boolean operations, signed distance fields, and some remeshing methods. It is not a requirement for every render asset. A plane used as a wall decal is intentionally open.

Non-manifold geometry can cause:

  • ambiguous inside and outside classification;
  • broken normal generation;
  • holes after simplification;
  • failed boolean or voxel conversion;
  • unpredictable collision cooking;
  • incorrect volume and mass calculations;
  • disconnected UV or baking artifacts.

Set requirements by asset class. A printable component may require one watertight component and positive volume. A game environment may allow open boundary loops at modular seams. A scanned product intended for WebXR may allow separate components but reject stray internal shells and any boundary visible to the user.

Do not “fix manifold” with an operation that fills every hole blindly. It can cap a sleeve, window, vent, or doorway that is supposed to remain open. Mark expected boundaries or compare them with a reference.

Why all-quads is not a delivery rule#

Subdivision surface modeling benefits from mostly regular quads because each face subdivides predictably and edge loops are easier to control. Poles, where a vertex connects to an unusual number of edges, redirect flow and can pinch a subdivided surface. Long thin quads can also produce uneven tessellation.

The shipped mesh is different. Before rasterization, faces become triangles. A clean triangulated delivery model can be excellent even though it has no quads. What matters is that its triangles:

  • approximate the intended surface at target views;
  • use stable winding;
  • are not accidentally degenerate;
  • place density where curvature or deformation needs it;
  • maintain required UV and material boundaries;
  • produce consistent normals and tangents;
  • avoid extreme slivers where they damage processing or shading.

An n-gon is an authoring face with more than four vertices. Export requires triangulating it. On a flat convex region, several diagonals may look equivalent. On a non-planar or concave n-gon, automatic triangulation can change the visible surface or even create triangles outside the intended boundary. Triangulate deliberately before baking and approve the resulting triangles.

Edge flow for deformation#

Skinning moves vertices according to weighted joint transforms. Topology determines where the surface can bend, compress, and stretch. The right density follows the deformation rather than an aesthetic grid.

Around an elbow, several loops across the bend provide samples for a rounded arc. If the joint has only one row of vertices, bending 90 degrees creates a sharp hinge. Too many tightly spaced loops can be wasteful and still collapse volume if weights are poor.

Test actual motion ranges:

  1. bind pose;
  2. 45-degree bend;
  3. 90-degree bend;
  4. maximum supported bend;
  5. twist in both directions;
  6. combined bend and twist;
  7. poses that bring surfaces into contact;
  8. silhouette views along and across the joint.

Place loops where curvature changes during these poses. Keep poles and abrupt density transitions away from high-strain regions when possible. Shoulders, hips, faces, and hands often require human review because their motion is multi-axis and visually sensitive.

Weights are part of the result. Four influences per vertex are common in real-time delivery, but a specific engine may support more or enforce a smaller effective set. Normalize weights, remove negligible influences when safe, and inspect how export quantization changes them.

Static topology has different priorities#

A rigid prop does not need deformation loops. It needs enough segments for its silhouette and enough triangles to support shading. Flat panels can be extremely sparse if openings, bevel highlights, and reflections remain correct.

CAD tessellation frequently creates dense, uneven topology: thousands of tiny triangles around fillets, long strips across trimmed surfaces, duplicate faces at part boundaries, and interior components the viewer never sees. Rebuilding everything as quads can consume more labor than the asset warrants. A better path may be cleanup, selective removal, controlled simplification, normal preservation, and validation.

For a 2-meter appliance shown no larger than 800 pixels, a hidden internal screw with 1,200 triangles has no visual value. A 3-millimeter edge bevel that produces a 1.2-pixel highlight may be a candidate for normal-map treatment. The topology review should connect each dense region to a screen-space reason.

Normals, hard edges, and smoothing#

Face geometry defines a geometric normal, but rendering commonly uses vertex normals interpolated across triangles. Sharing a normal creates smooth shading; splitting normals creates a hard shading boundary. One geometric position may therefore need multiple exported vertices.

Hard edges should reflect intended surface discontinuity. A cube with fully shared smooth normals looks inflated because its lighting interpolates across 90-degree corners. Splitting the normals at each face restores planar shading. Conversely, marking every triangulation edge hard makes a curved surface look faceted and greatly increases rendered vertices.

Weighted or custom normals can improve shading on beveled hard-surface models without adding large amounts of geometry. They must survive export and agree with tangent generation. Always inspect the GLB; the authoring viewport may show modifier-generated normals that were not included.

Coordinate hard edges and UV seams thoughtfully. Both can cause vertex splits, so placing a necessary UV seam on an already hard edge can avoid an additional independent discontinuity. This is an optimization opportunity, not a command to distort UVs or move a visible seam into a worse place.

UV topology and material boundaries#

UV islands cut the mesh into regions that can be laid flat. Every cut creates a coordinate discontinuity even if the geometric position is shared. Mirrored islands can save texture space but need correct tangent handedness and may be unsuitable for unique text, damage, baked lighting, or asymmetric normal detail.

A separate material divides glTF geometry into primitives. Vertices generally cannot be indexed across those primitive boundaries. A model with 40 material slots may produce 40 submission units and repeated boundary vertices. Remove unused slots and combine materially identical regions when culling and texture strategy allow it.

Topology changes after UV unwrapping can create stretched or overlapping islands. Changes after normal-map baking can invalidate the tangent basis. A stable order is:

  • resolve major form and component structure;
  • establish delivery topology;
  • decide hard edges and triangulation;
  • unwrap and pack UVs;
  • bake maps;
  • make only controlled, rebaked changes afterward.

Triangle shape and density#

Equilateral triangles are numerically and geometrically well behaved, but real meshes need directional edges and boundaries. A long thin triangle is not automatically a performance disaster. It becomes a problem when it creates poor interpolation, unstable simplification, tiny raster coverage, collision errors, or a visible shading kink.

Measure edge-length distribution and aspect ratio to find outliers, then inspect them in context. A triangle 100 times longer than it is wide across a curved highlight deserves attention. A thin triangle following a straight boundary may be harmless.

Density transitions should be gradual where a smooth deforming surface moves. On a rigid flat region, a dense circular opening can connect to a sparse panel through a small number of carefully placed triangles. The goal is a valid interpolation surface, not square cells everywhere.

Cleanup without accidental damage#

Start cleanup by making a report before changing the mesh. Count components, boundaries, non-manifold edges, duplicate positions, duplicate faces, degenerates, inverted regions, materials, and attribute seams.

Then classify findings:

  • exact accidental duplicates can normally be removed;
  • vertices within a tolerance need scale-aware review;
  • internal shells may be deleted if no view, shadow, or physics path needs them;
  • holes need comparison with the source intent;
  • inverted components may need winding reversal, not deletion;
  • overlapping surfaces may be deliberate decals or accidental z-fighting;
  • loose markers may be authoring helpers that should not ship.

A merge-by-distance threshold of 0.001 means one millimeter in a meter-based asset. On a 5-millimeter component, that is enormous; on a 5-kilometer terrain, it is tiny. Express tolerance relative to asset scale or manufacturing precision.

Run cleanup on a copy and compare counts after every operation. If welding removes 12,000 of 40,000 vertices, stop and inspect several affected regions; that is evidence of either major duplication or an overly broad threshold. A safe cleanup report explains what changed, where it changed, and which attributes were allowed to differ.

Preserve the untouched source beside every cleaned derivative.

Any reported face still has at least 3 vertices in its delivered triangle representation; a zero-area result remains invalid regardless of how little storage it occupies.

Topology review procedure#

Review in passes so one display mode does not hide another:

  1. solid unlit view for openings and overlaps;
  2. wireframe over solid for density and flow;
  3. face-orientation view for winding;
  4. boundary and non-manifold selection;
  5. flat shading for geometric faceting;
  6. smooth shading for normal continuity;
  7. moving specular light for subtle kinks;
  8. UV checker for distortion and seams;
  9. skinned pose suite when animated;
  10. exported-file statistics and target-runtime render.

Compare silhouette at the closest permitted camera, then zoom back to typical use. A topology flaw visible only at 16× unauthorized zoom should not outweigh a 2 MB delivery reduction; a one-pixel flickering seam during normal interaction should.

Production checklist#

  • Boundary edges match explicitly intended openings.
  • Non-manifold findings are classified, not blindly filled.
  • Duplicate and degenerate faces are absent from delivery primitives.
  • Triangle winding is consistent after every basis conversion.
  • N-gons are triangulated before bake and final review.
  • Static meshes do not carry deformation-oriented density without a reason.
  • Animated joints pass their full pose suite.
  • Hard edges follow intended shading boundaries.
  • UV seams, tangent splits, and material boundaries are understood.
  • Rendered-vertex counts are measured after export.
  • Small and hidden features justify their geometry.
  • Simplification and cleanup preserve named critical features.

Sources and further reading#

Topology quality is operational. A mesh is good when its structure supports the required shading, motion, reduction, export, and runtime behavior with no unexplained cost. That definition is stricter—and more useful—than requiring a particular face pattern everywhere.

Keep learning

Related guides

Foundations10 min

What Is a GLB File?

A practical guide to the binary glTF container: its byte layout, contents, loading behavior, inspection tools, and limits.

glbgltf3d-formats
Foundations14 min

Skeletal Rigging Basics: How Bones and Skin Weights Drive a 3D Character

Learn how joints, bone hierarchies, and skin weights make a 3D character move, and how a rigged GLB actually deforms in web and game engines.

riggingskeletal animationskin weights
Foundations10 min

Quad Retopology for Beginners: Build a Clean Mesh That Keeps the Shape

Learn what quad retopology is, why artists use it, and how to rebuild a dense sculpt or scan as a practical low-resolution mesh.

quad retopologyretopologytopology