-
Notifications
You must be signed in to change notification settings - Fork 202
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
Material Import fails to set texture paths when shader inputs:file properties are connected #3836
Comments
thank you for reporting this. I will bring the discussion to the team to investigate a bit deeper, although, this might be just a limitation of the importer. As maya would have to change those connections in order to convert the shader network properly - i could be wrong on this though. I will take a look at your original file attached and see what i can find :) |
I don't see why Maya would have to remove those connections when importing. The equivalent Maya shader network should be custom attributes added to the PS. @santosg87 I will try to open up permessions on the example file. I granted you access for now, but I may have to swap the link to a different storage to make it fully open to the public. |
I have replaced the google drive link with a new one that is hopefully fully open to the public. Let me know if you have trouble accessing it. |
@santosg87 I am checking in on this bug to see if you could reproduce it and if there are any plans to have someone fix it. Thanks! |
hey @codethegame18 sorry for the late reply, we were indeed able to reproduce this issue on our side. This seems to be an issue with all usd file formats, and not just USDZ textures. It seems all the connections are maintained, but the file path is lost on the translation. From my testing, even though the textures are gone, I am able to just input the file path on the texture node and that gets the material drawing as expected. On the USDZ files case specifically, you would need extract the file contents to disk in order to point to the textures. At the moment, this issue is not a top priority for our current cycle, as it is only an import issue, and it can be fixed by adding the texture paths. we might re-visit this issue when working on other import tasks, but there are no specific tasks in the planned work that relate at this point. cheers! |
Describe the bug
I have a Material Prim serving as an interface for a shader network. Attributes on the Material connect to attributes on the shaders. When I load this scene via the Layer Panel it all works as expected. When I instead File->Import this scene, the textures fail to load onto the Maya shaders (even with
importUSDZTextures=1
).Steps to reproduce
Expected behavior
The viewport should render steps (3) and (4) the same way, which should appear as a cube mesh with a cracked stone texture.
Attachments
Source data: https://drive.google.com/file/d/1qUHkOrtXG55vjtSAMl-i0qhnykPgezqr/view
Via Layer Editor:
Via Import:
Specs
Additional context
The Material Prim is serving as an interface for the shader network. The AssetPath texture inputs are specified on the Material Prim, and the actual
inputs:file
properties on the UsdUVTexture shaders are connected to the inputs on the Material Prim. If I delete this interface & instead set the Shader prim inputs directly, then the Maya textures are setup correctly via File->Import.The text was updated successfully, but these errors were encountered: