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
- [WebGPU] clearing 2d array texture only clears first slice
- Particle System Renderer icon is missing in Animation window > Add Property context menu
- [Android] Legacy, TMP and UI Toolkit Input Field language toggle to some non-latin alphabet languages does not work with external keyboard
- Crash on keywords::LocalKeywordState::operator when calling ShaderUtil.GetPasskeywords with ShaderType.RayTracing set as the third parameter
- Inconsistent “Remove property” behavior when removing child properties in Animator window
Resolution Note (fix version 3.0.0-exp.3):
Second PR with additional fix: https://github.com/Unity-Technologies/usd-unity-sdk/pull/375