---
title: "How to fix flipped normals in an OBJ file"
description: "In an OBJ, vertex order on each f line sets the front face and vn lines set the lighting. Recalculate normals and export with normals on so both agree."
canonical: https://appliedmanifold.com/mesh/fix-flipped-normals-obj/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  OBJ normals

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.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

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](https://appliedmanifold.com/playground/).

-   Front side: vertex order on each `f` line
-   Lighting: the `vn` normals, if present
-   No `vn` lines: 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

1.  Look at the model in your engine. Missing faces mean reversed vertex order; black faces mean inward `vn` normals.
2.  Import it into your 3D editor, turn on face orientation, recalculate normals outside and flip any faces still wrong.
3.  Export the OBJ with normals included, so the new `vn` lines match the faces.
4.  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.
5.  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.

03 // RELATED

## Related pages

-   [Mesh normals AvailableNormals are the directions a mesh's faces and vertices point, used for lighting and culling, and flipped ones look black or vanish.](https://appliedmanifold.com/learn/normals/)
-   [Flipped normals AvailableRecalculate normals outside, flip the faces left over and apply mirrored scale so a model draws correctly in any engine.](https://appliedmanifold.com/mesh/fix-flipped-normals/)
-   [STL normals AvailableWeld the loose STL triangles, recalculate normals outside and export so facet normals and vertex order agree again.](https://appliedmanifold.com/mesh/fix-flipped-normals-stl/)
-   [OBJ n-gons AvailableOBJ face lines can hold any number of corners, so triangulate before export and stop each importer splitting them differently.](https://appliedmanifold.com/mesh/fix-ngons-obj/)
-   [OBJ to GLB AvailableConvert an OBJ file and its .mtl materials to GLB by hand, and fill in what OBJ leaves out: units, pivots, PBR materials and normals.](https://appliedmanifold.com/mesh/convert-obj-to-glb/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← FBX normals](https://appliedmanifold.com/mesh/fix-flipped-normals-fbx/)[STL normals →](https://appliedmanifold.com/mesh/fix-flipped-normals-stl/)

04 // FAQ

## OBJ normals questions

[All questions →](https://appliedmanifold.com/faq/)

**README.FIX\_FLIPPED\_NORMALS\_OBJ**

### 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.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
