maya-usd
maya-usd copied to clipboard
Meshes import primvars incorrectly when using left handed orientation
Describe the bug When importing a mesh with a left handed orientation, Maya imports primvars incorrectly causing damaged assets. This is most noticeable with UV's where textures no longer line up correctly.
This is a screenshot of the asset prior to import using Hydra Storm
After exporting the asset from Maya, we get this.
Looking at the export file, the issue seems to be that Maya has converted the faces over to the correct orientation but has not done the same for primvars. So the texCoord2f primvars appear in the same order as before the conversion, however that means they don't actually correspond to the faces they're meant to.
Steps to reproduce Steps to reproduce the behavior:
- Import
leftHanded.usda
from the attached file - Export as USD
- View it in usdview
- See that the UVs no longer line up for the
leftHanded_leaf
mesh.
Expected behavior I'd expect that the UV's and other primvars be reordered using the same algorithm that reorders the vertices.
Attachments Archive.zip
Specs (if applicable):
- OS & version: macOS 14.4
- Compiler & version: clang 15
- Maya version: 2024.1 (reproduces with 2024.2 as well)
- Maya USD: 0.27
- Pixar USD: 0.24.3