maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

[MAYA-107834] Normal maps are not preserved in the round trip from Maya to USD back to Maya

Open chadmv opened this issue 3 years ago • 3 comments

Describe the bug Normal maps are not preserved in the round trip from Maya to USD back to Maya

Steps to reproduce

  1. Create a mesh, assign either a lambert or standard surface material.
  2. Connect a tangent space normal map to the material
  3. Export the mesh as USD with USD Preview Surface material
  4. New scene
  5. Reimport the USD, converting the material to either lambert or standard surface
  6. There is no normal map connected to the material.

Expected behavior The normal map should be connected to the material like in the original Maya source

Specs (if applicable):

  • Windows 10 Pro (10.0.19044 Build 19044)
  • Maya 2023 cut 202202161415-df43006fd3
  • Maya USD 0.16.0

chadmv avatar Apr 14 '22 07:04 chadmv

I am having the same issue. When connecting normal maps with the bump2d node it causes rendering to fail (vray), when the file node is connected directly it simply doesn't import, but renders successfully (albeit without the normal map).

I can't find any guidance for the proper way to connect normal maps to USDPreviewSurface. Can someone clarify?

Ziethriel avatar May 04 '22 01:05 Ziethriel

Yes, we currently don't have translation for bump2d in USD Preview surface this does cause issues on import and export for Normal maps. Like you said direct file node connections work but that doesn't translate properly for the render. At this point we have some logged issued to resolve this through Material X and add the ability to translate through a Material X as the material in the USD options. I am wondering if that is something that you could work with or if in your workflow you would prefer the ability to do it through a USD Preview Surface material?

santosd avatar Jun 09 '22 20:06 santosd

We could use MaterialX as we mainly just require better Maya viewport rendering since we are in the game industry and would like to use USD instead of Maya and FBX files.

chadmv avatar Jun 28 '22 17:06 chadmv

there are other avenues being investigated regarding normals on workflows that are less maya centric and more USD-centric instead, so we don't plan on working on this. we recommend using MaterialX :)

santosg87 avatar Sep 30 '24 14:09 santosg87