Unity-Technologies / usd-unity-sdk

Integration of Pixar's Universal Scene Description into Unity. UPDATE: This package has been superseded by our new bundle of USD packages. Please see README & link below for further details.
https://forum.unity.com/threads/new-openusd-packages-now-available.1524583/
Apache License 2.0
499 stars 74 forks source link

Playback via Timeline [USDU-450] #397

Open nicolaspopravka opened 1 year ago

nicolaspopravka commented 1 year ago

We are having rendering issues with the use of the UsdSkel schema in our USD assets and the Playback via Timeline feature.

The problem can be reproduced by using Pixar's UsdSkelExamples. Attached a screenshot of HumanFemale.keepAlive.usd imported as game objects when trying to play back animation via the timeline.

Is this a known issue?

image

lee-aandrew commented 1 year ago

Hello @nicolaspopravka! Just to make sure, are you using the latest version of our package, 3.0.0-exp.4?

We are aware of an issue with this file, but I cant seem to reproduce it to see what you are seeing on your screenshot on 3.0.0-exp.4

nicolaspopravka commented 1 year ago

I was using my own build from the current HEAD of your dev branch, for this bug report. I actually had missed the release of the new version!

Unfortunately, I am still seeing some rendering problems using a newly installed 3.0.0-exp.4 version. However, it appears that there is only a problem with the Materials option set to Import Display Color, but not with the Materials option set to Import Preview Surface, for some reason.

So, here are my steps to reproduce this issue:

  1. Click USD->Import as GameObjects and open a copy of HumanFemale.keepAlive.usd.
  2. Select HumanFemale_Group in the Hierarchy, select Load All for the Payload Policy in the Inspector, and with Import Display Color still set for the Materials, click the USD Asset Refresh icon. The asset is now loaded and rendered in the Scene view.
  3. With HumanFemale_Group still selected in the Hierarchy, click Create in the Timeline, then Save.
  4. Drag-and-drop HumanFemale_Group from the Hierarchy into the left section of the Timeline, then select Add Usd Playable Track.
  5. Drag-and-drop HumanFemale_Group again from the Hierarchy into the right section of the Timeline onto the new track.
  6. Scrub the timeline. As soon as it hits the animation clip then the problem shown in the attached screenshot appears in the Scene view.

But my recent finding is that, from this bad state, selecting the Import Preview Surface option for the Materials, then refreshing the USD Asset, seems to put the Unity Editor back into a good state.

What Materials import option did you use before?

lee-aandrew commented 1 year ago

@nicolaspopravka Thank you for the detailed repro steps! As you stated, I had used the Import Preview Surface option for the Material import settings, and probably why i had missed this error on my side

I was able to reproduce the problem, and created a ticket internally to track the issue

Thank you again for reporting the issue!