LEARN // meshfx
What is an n-gon
An n-gon is a polygon face with five or more sides, as opposed to a triangle or a quad. Your engine draws only triangles, so every n-gon gets split into triangles on import or export, and on a curved or animated surface that automatic split can cause shading streaks, pinching and faces that fold the wrong way.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- Five or more sides on one face
- Engines and glTF use triangles only
- Fine on flat static faces, risky on curves
- Fix: triangulate or cut into quads before export
01 // WHAT IT MEANS
Where n-gons come from
3D editors allow faces with any number of sides, and boolean cuts, bevels and dissolved edges leave them behind. A flat n-gon on a static surface, such as the top of a crate, triangulates cleanly and causes no trouble.
Trouble starts when the n-gon is not flat (non-planar) or has a dent in its outline (concave). The exporter picks the triangles, the picks may cut across the shape you meant, and the shading shows the cut. glTF stores only triangles, so the choice happens at export; FBX, OBJ and USD can store n-gons and leave it to the importer.
02 // IN YOUR ENGINE
What goes wrong
- Dark wedges or streaks across a face that looked smooth in your editor.
- Pinching on a character's joint where an n-gon bends with the skin.
- Different triangulation in your editor and in the engine, so a normal map precomputed in one looks wrong in the other.
03 // BY HAND TODAY
Clean up n-gons by hand
- Select faces by number of sides, more than 4, to find them.
- Cut them into quads with new edges where the model bends or curves.
- Triangulate the rest yourself before compiling and export, so the editor, the baker and the engine use the same triangles.
04 // SPATIAL COMPILER
meshfx and n-gon faces
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.
Are n gons bad for game models?
Flat n gons on static surfaces are fine, while curved, concave or deforming n gons cause shading and bending problems and should be triangulated.
How do I triangulate n gons for a game engine?
Select the faces and run your editor triangulate command, then check shading before compiling so the engine sees the exact same triangles.
Why does an n gon deform poorly when animated?
Its automatic triangles do not follow the joint bend, stretching across the surface. Quads arranged in loops around joints bend evenly.
How do I find non planar n gons?
Select faces by side count to list n gons, then inspect shading breaks or run your editor check for distorted faces.
How do I clean up topology after a boolean creates n gons?
Connect n gon corners to nearby vertices until faces have three or four sides or triangulate the cut if it stays flat and static.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.