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

Package: USD Legacy

-

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!

  1. Unpack attached zip file.
  2. Import attached {{cube_uvgrid_string.usda}} file as GameObjects.
  3. Switch "Materials" attribute to "Import Preview Surface".
  4. Reimport USD asset.
  5. Repeat steps 1-3 with {{cube_uvgrid_token.usda}} file.
  6. 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}

  1. Resolution Note (fix version 3.0.0-exp.3):

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.