Search Issue Tracker
Fixed
Fixed in 3.0.0-exp.3
Votes
0
Found in [Package]
3.0.0-exp.2
Issue ID
USDU-342
Regression
No
Problem importing materials from USD 21.11
Originally Open on GitHub:
[https://github.com/Unity-Technologies/usd-unity-sdk/issues/353]
----
h3. Bug Report
In USD 21.11, the type of the {{UsdPrimvarReader.varname}} input was changed from {{token}} to {{{}string{}}}, with this commit. Because of this, importing into Unity assets created with USD 21.11 creates objects that are simply colored instead of fully textured.
This can be easily reproduced by exporting a cube with a textured Standard Surface material from Maya 2023 (that ships with USD 21.11).
Is this a known issue ?
----
h3. Repro steps
Textured cube using {{token}} (left) and {{string}} (right).
Unity 2021.3.9f1.
!image-2023-03-28-11-08-26-375.png|width=674,height=382!
- Unpack attached zip file.
- Import attached {{cube_uvgrid_string.usda}} file as GameObjects.
- Switch "Materials" attribute to "Import Preview Surface".
- Reimport USD asset.
- Repeat steps 1-3 with {{cube_uvgrid_token.usda}} file.
- Notice the difference between the {{token}} (left in image) and {{string}} (right in image) imports.
Corresponding line in {{{}cube_uvgrid_token.{}}}usda file:
{code:java}
token inputs:varname.connect = </Cube/mtl/uvGridMat.inputs:texFile:varname> {code}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
- Celestial bodies order remains unchanged when the Distance setting is modified
- A memory leak occurs with massive terrain when camera position changes occur.
- No valid hits are returned when using RaycastCommand
Resolution Note (fix version 3.0.0-exp.3):
Second PR with additional fix: https://github.com/Unity-Technologies/usd-unity-sdk/pull/375