Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture paths are resolved differently by Maya and the exporter #3201

Open
dgovil opened this issue Jul 6, 2023 · 1 comment
Open

Texture paths are resolved differently by Maya and the exporter #3201

dgovil opened this issue Jul 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dgovil
Copy link
Collaborator

dgovil commented Jul 6, 2023

Describe the bug
Maya appears to try multiple ways to resolve a texture path, which can cause scenarios where a texture fails to resolve correctly for the USD exporter. This results in USDZ files without any textures at all.

It appears that Maya will try and find missing textures in sourceImages, even if the file node shows an absolute path that doesn't exist. As long as a texture with the same base filename exists in sourceImages, it will be substituted by Maya.

However, since this behaviour isn't exposed to USD, the asset path resolution will then correctly fail.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a Maya workspace and add some textures to the sourceImages directory
  2. Create a Maya scene in this workspace with an object.
  3. Assign the texture to the object but make sure to use the absolute path.
  4. Relocate the workspace
  5. Try to export the scene to a USDZ

The USDZ will be missing the textures because the Path given to it by Maya does not actually exist.

Expected behavior
Maya should show the texture is missing. Instead it substitutes it with any filename match within sourceImages.
The USDZ will have missing textures because the path it is given does not exist.

Tried with Maya 2024.1 and the latest Maya USD version.

@dgovil dgovil added the bug Something isn't working label Jul 6, 2023
@neilh-adsk neilh-adsk moved this to Needs triage in maya-usd Nov 6, 2023
@maya-usd-git-sync
Copy link

Issue synced internally to EMSUSD-790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants