meshfx // OBJ NORMALS
How to fix flipped normals in an OBJ file
You fix flipped normals in an OBJ by making two things agree: the vertex order on each f line, which decides which side is the front, and the vn normals, which decide lighting. Recalculate normals outside in your 3D editor and export with normals on, or let the engine compute normals from the corrected faces.
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.
- Front side: vertex order on each
fline - Lighting: the
vnnormals, if present - No
vnlines: the importer computes normals
01 // WHY
Two ways an OBJ face can be flipped
Each face line lists its corners in order, and counter-clockwise seen from outside is the front. Each corner can also point to a vn normal. With the order reversed, the engine culls the face and it disappears. With the order right and the vn normals pointing inward, the face draws but is lit from the wrong side and looks black.
Flipping faces in an editor changes both. Editing the order alone, or importing with stored normals, can leave one wrong, so an OBJ sometimes stays dark after a flip.
02 // HOW TO
Make order and normals agree
- Look at the model in your engine. Missing faces mean reversed vertex order; black faces mean inward
vnnormals. - Import it into your 3D editor, turn on face orientation, recalculate normals outside and flip any faces still wrong.
- Export the OBJ with normals included, so the new
vnlines match the faces. - Or export without normals and let the engine rebuild them: Calculate in Unity's Normals setting, Compute Normals in Unreal Engine's Normal Import Method.
- Import again and check the model from all sides.
meshfx retains existing UVs during triangle reduction. Create the texture atlas in your editor. Hosted meshfx runs are available in the Playground.
Why does my OBJ look black in three.js?
Its vn normals point inward or are missing. Export again with corrected normals or call geometry.computeVertexNormals() on each mesh after OBJLoader loads it.
How do I recalculate normals outside before exporting an OBJ?
Select all faces in edit mode, run Recalculate Normals Outside and export with normals included so the vn lines follow the new orientation.
How do I display face normals before exporting an OBJ?
Turn on face orientation or normals display in your 3D editor's viewport overlays. Compare the file's vn lines with the faces if shading looks wrong.
How do I fix inconsistent face orientation in an OBJ?
Recalculate normals on the whole mesh in your 3D editor because joined parts often mix orientations. Export with normals so the fixed state saves.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.