meshfx // USD NORMALS

How to fix flipped normals in a USD file

You fix flipped normals in a USD file by checking the mesh's orientation attribute first, since leftHanded reverses which side counts as the front. Set it to rightHanded, the default, and reverse the faces in the same step. Then recalculate normals in your 3D editor if faces still point inward, and check doubleSided on thin parts.

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.

  • orientation: rightHanded (default) or leftHanded
  • doubleSided is false unless set
  • Normals on a subdivision mesh are ignored

01 // WHY

USD attributes that change the front face

A USD mesh has an orientation attribute. With rightHanded, counter-clockwise corners face you; with leftHanded, clockwise ones do. A file that uses leftHanded looks right in a viewer that honors it and inside out in an importer that ignores it. The doubleSided attribute, false by default, decides whether back faces draw at all.

USD also gives subdivisionScheme a default of catmullClark, and normals authored on a subdivision mesh are ignored, so a renderer computes its own. Set subdivisionScheme to none on game meshes so your stored normals are used.

02 // HOW TO

Fix orientation and normals in USD

  1. Open the file as .usda text or in your 3D editor's attribute view and find the mesh prim.
  2. Check orientation. If it says leftHanded, set it to rightHanded and flip all faces in the same step, so the visible side stays the same in every program.
  3. Check subdivisionScheme and set it to none for a game mesh.
  4. In your 3D editor, turn on face orientation, recalculate normals outside, flip stragglers, and apply any negative scale.
  5. Export the USD, or export GLB for an engine without a USD importer.

meshfx retains existing UVs during triangle reduction. Create the texture atlas in your editor. Hosted meshfx runs are available in the Playground.

04 // FAQ

USD normals questions

All questions →

README.FIX_FLIPPED_NORMALS_USD
How do I fix flipped USD normals in Unreal Engine?

Fix orientation and the faces in the source file and import again. A Two Sided material hides the problem but lights back faces wrong.

Why is my USD model inside out in Unity?

Check the mesh's orientation attribute and any negative scale. A leftHanded mesh read as right handed shows its back faces instead.

How do I fix shading artifacts on a USD game mesh?

Set subdivisionScheme to none so the authored normals are used, then recalculate normals in your 3D editor if they still look wrong.

How do I reverse the normals on selected faces in a USD mesh?

Flip them in your 3D editor and export again. In the file, a flip reverses that face's entries in faceVertexIndices.

Explore meshfx outputs

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

All effects, guides and explainers →