meshfx // FBX NGONS

How to fix n-gons in an FBX file

You fix n-gons in an FBX by triangulating or quad-cutting them in your 3D editor, or by turning on triangulation in the exporter. FBX stores n-gons as they are, so the file looks fine in an editor and the engine's importer picks the triangles. Unity and Unreal Engine each split them on import with their own method.

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.

  • FBX stores n-gons as polygons
  • Engines triangulate them on import
  • Triangulate on export to pick the cuts

01 // WHY

Why FBX hides n-gon problems

FBX keeps polygons with any number of corners, so a model with n-gons passes between 3D editors unchanged. Game engines draw triangles, so the importer splits each polygon as it builds the mesh. Unity's Keep Quads option keeps four-sided faces for tessellation, but it still splits n-gons. Nothing warns you, so the first sign is often a shading streak or a dent on a curved face.

02 // HOW TO

Control the split before import

  1. Select faces with more than four sides.
  2. Cut concave and non-planar ones into quads or triangles by hand where shading matters.
  3. Turn on the exporter's triangulate option, or triangulate a copy, so the FBX holds the triangles you checked.
  4. Unreal Engine: after import, open the static mesh in the Static Mesh Editor and turn on wireframe to see the triangles.
  5. Unity: after import, switch the Scene view to Shaded Wireframe and look over curved areas.

FBX and USD input are not supported by meshfx. Export glTF, GLB, OBJ, STL or surface PLY first, then inspect the measured output. Hosted meshfx runs are available in the Playground.

04 // FAQ

FBX n-gon questions

All questions →

README.FIX_NGONS_FBX
Are ngons bad in an FBX for Unity or Unreal?

They import because both engines triangulate on import. Concave and nonplanar ones can split badly, so triangulate those yourself before export.

How do I find nonplanar ngons before exporting an FBX?

Select faces by sides and use your editor's distortion check to highlight faces whose corners do not lie on one plane. Split those first.

Does Unreal Engine keep quads from an FBX?

No. Unreal Engine builds static meshes from triangles, so quads and ngons are split on import.

Should I triangulate FBX files for Unity?

Triangulate where the split matters, such as curved or animated ngons. Simple flat faces can stay because Unity splits them on import.

Explore meshfx outputs

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

All effects, guides and explainers →