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
496 stars 74 forks source link

USDZ Texture reading support (FTV-202)(USDU-230) #78

Open maximeLong opened 5 years ago

maximeLong commented 5 years ago

Is USDZ import currently supported? I've noticed that USDZ is not a registered extension on the filesystem import selection, however you can manually import if you change the selection to "All Files". Loading a USDZ model with this method is a fair bit slower than loading an equivalent USD model, and I've noticed that materials will at times not import correctly compared to a USD counterpart as well.

jcowles commented 5 years ago

It is currently supported, however reading textures from USDZ is not; this is the reason we haven't included it in the file open dialog filter. Until then, you can manually select the file and it will load, however it will not include the zipped textures.

Once textures are supported, we will enable USDZ in the open dialog.

bambamyi commented 4 years ago

Hello, Is there any additional work being on importing USDZ directly? This would be very awesome feature to be included. Thanks!

judubu commented 4 years ago

Hi bambamyi, we are not working on any USDZ features at the moment. But we are in process of planning work for next year so we'll see if we have room for USDZ improvement.

bambamyi commented 4 years ago

That is unfortunate to hear. I hope you guys decide to add direct USDZ support quickly. Yes I can uncompress the usdz file and reference the textures and stuff but it really seems misaligned that you guys are on top of ARKit support but not the file format used by ARKit...

griffinbholt commented 4 years ago

I am having trouble attaching textures to a USD file that I imported into Unity. It was previously a USDZ file that I unzipped, but I can't figure out how to reference the textures. Any place you could point me to that would help me to do that?

judubu commented 4 years ago

If you have unzipped the usdz file into a folder, setting the Material property on your Usd Asset to Import Preview Surface should get you the textures. If not can you send the usdz file for us to investigate?

griffinbholt commented 4 years ago

That worked. Thank you so much! I appreciate it!

Griffin

On Jan 24, 2020, at 8:07 AM, Julien Dubuisson notifications@github.com wrote:

If you have unzipped the usdz file into a folder, setting the Material property on your Usd Asset to Import Preview Surface should get you the textures. If not can you send the usdz file for us to investigate?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/usd-unity-sdk/issues/78?email_source=notifications&email_token=ALWO7BO4NFYBVYTNMZKLXA3Q7L74RA5CNFSM4HEEUUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3CPLQ#issuecomment-578168750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWO7BPCHEINW4VQUC6MRFLQ7L74RANCNFSM4HEEUUWQ.

griffinbholt commented 4 years ago

Hi Julien,

So, using Import Preview Surface worked correctly, but now it seems that I have lost my skeleton structure (the hierarchy of joints). Whereas before, all of the joint nodes were included, now there is only a Skeleton node.

Thanks for your patience, Griffin Holt

On Jan 24, 2020, at 8:07 AM, Julien Dubuisson notifications@github.com wrote:

If you have unzipped the usdz file into a folder, setting the Material property on your Usd Asset to Import Preview Surface should get you the textures. If not can you send the usdz file for us to investigate?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/usd-unity-sdk/issues/78?email_source=notifications&email_token=ALWO7BO4NFYBVYTNMZKLXA3Q7L74RA5CNFSM4HEEUUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3CPLQ#issuecomment-578168750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWO7BPCHEINW4VQUC6MRFLQ7L74RANCNFSM4HEEUUWQ.

griffinbholt commented 4 years ago

Hi Julien,

I thought I’d give you some additional details about what I’m seeing.

I have attached a link to the usdz model I am trying to import properly into Unity: (it is the same usdz model that Apple used for its ARKit 3 demonstration)

https://developer.apple.com/videos/play/wwdc19/607/ https://developer.apple.com/videos/play/wwdc19/607/

The problem I am seeing is this:

Sometimes, after unzipping the usdz and importing it into Unity, I am getting the whole skeleton structure but am not able to any of the materials (the model just appears black). Other times, after unzipping and importing, I am getting the mesh and the materials attached, but the entire joint hierarchy is gone.

My goal is to get both the mesh & materials attached and get the whole joint hierarchy. Could you help me understand what I am doing wrong?

Thank you, Griffin Holt

On Jan 24, 2020, at 2:24 PM, Griffin Holt griffinbholt@gmail.com wrote:

Hi Julien,

So, using Import Preview Surface worked correctly, but now it seems that I have lost my skeleton structure (the hierarchy of joints). Whereas before, all of the joint nodes were included, now there is only a Skeleton node.

Thanks for your patience, Griffin Holt

On Jan 24, 2020, at 8:07 AM, Julien Dubuisson <notifications@github.com mailto:notifications@github.com> wrote:

If you have unzipped the usdz file into a folder, setting the Material property on your Usd Asset to Import Preview Surface should get you the textures. If not can you send the usdz file for us to investigate?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/usd-unity-sdk/issues/78?email_source=notifications&email_token=ALWO7BO4NFYBVYTNMZKLXA3Q7L74RA5CNFSM4HEEUUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3CPLQ#issuecomment-578168750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWO7BPCHEINW4VQUC6MRFLQ7L74RANCNFSM4HEEUUWQ.

griffinbholt commented 4 years ago

Any word on the problem I submitted above?

lee-aandrew commented 1 year ago

Hello @griffinbholt

I am doing a issue clean up task using our latest dev branch, and with this issue, I cannot reproduce your case with the skeleton structures missing - I've used assets from Apple, specifically "gramophone", "robot_walk_idle", and "toy_drummer" and for all 3 assets, importing directly from USDZ and unzipped USDC, I could not reproduce the skeleton structures being missing, and so I believe this has been fixed by our more recent bug fixes

But just in case, if you are still following this issue, please pull our latest dev branch of the package and try again, and if still problematic it would be very much appreciated if you could send us the exact asset you are having the skeleton structure problem

The texture missing portion, we are aware and is tracked in our internal bug tracking system

Thank you!