meshfx // TOPOLOGY

How to fix n-gons in a game model

You fix n-gons, faces with five or more sides, by cutting them into quads or triangles yourself before export. Select faces by side count in your 3D editor, then triangulate them or connect vertices with new edges. Choosing the cuts yourself avoids the shading streaks and bad bends an automatic split can cause.

pyrofx effects work today, and new accounts start with $5 of usage.

MODULE // meshfx AVAILABLE

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.

  • N-gon: a face with five or more sides
  • Engines draw triangles, so every n-gon gets split
  • Concave and non-planar n-gons split badly

01 // HOW TO

Find and split n-gons

  1. Select faces by sides, set to greater than 4. Most 3D editors have Select Faces by Sides or a polygon count filter.
  2. Triangulate flat, convex n-gons on parts that never bend, with a beauty or shortest-diagonal method.
  3. On curved or animated surfaces, cut n-gons into quads instead, connecting opposite vertices or using a knife cut that follows the edge flow.
  4. Look for non-planar faces, whose corners do not lie on one plane, and split them along the fold.
  5. Triangulate on export, or run triangulate on a copy, so the file holds the triangles you checked.

meshfx measures holes, flipped faces and non-manifold edges. Each repair is checked against the source and undone with a warning if it moves the surface too far. Hosted meshfx runs are available in the Playground.

02 // WHEN IT MATTERS

When an n-gon causes trouble

A flat, convex n-gon on a static prop is harmless, since any split gives the same picture. On a concave face, shaped like an L or a C, a simple fan of triangles from one corner can cross outside the face. On a non-planar face, the shading depends on which diagonal the importer picked.

Parts that bend need extra care. The triangles inside an n-gon stretch unevenly when a joint moves, so faces near elbows, knees and mouths should be quads with edge loops around the joint. Boolean cuts also leave long n-gons around the cut; join the cut corners to nearby vertices to break them up.

04 // FAQ

N-gon questions

All questions →

README.FIX_NGONS
Are faces with five or more sides bad for game models?

Only some of them. Every engine splits them into triangles on import, so concave, flat or bending ones behave differently depending on the surface.

How do I triangulate faces with five or more sides for a game engine?

Select faces with more than four sides and run Triangulate Faces with a beauty method or turn on triangulation in the exporter. Check curved areas afterward.

How do I convert five or more sided faces into clean quads or triangles?

Connect opposite vertices or cut along the edge flow to make quads and triangulate only what cannot become quads.

Why does a face with five or more sides deform incorrectly when animated?

Its hidden triangles stretch unevenly when the joint bends, which pinches the surface. Replace those faces near joints with quads and edge loops.

How do I clean up topology after a Boolean cut?

Connect each corner of the cut to the nearest vertex on the surrounding faces, so long faces become quads and triangles. Remove any zero area faces left behind.

Should a game ready mesh use quads or triangles?

Model in quads and ship triangles. The engine renders triangles either way and quads keep the model easy to edit and to bend cleanly.

Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

All effects, guides and explainers →