three-usdz-loader
three-usdz-loader copied to clipboard
Some USDZ models can't be loaded
For some reason, some USDZ models are not been loaded in the viewer (but they are loaded on iOS). Without special errors, the scene just remains clean:
usdz (1).zip
Please, check
Same here with some usdz files:
[Warning] Coding Error: in Usd_GetAPISchemaPluginApplyToInfoForType at line 1527 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolOpenVDBAsset' (emHdBindings.js, line 2970)
[Warning] Coding Error: in Usd_GetAPISchemaPluginApplyToInfoForType at line 1527 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolVolume' (emHdBindings.js, line 2970)
[Warning] Coding Error: in Usd_GetAPISchemaPluginApplyToInfoForType at line 1527 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolField3DAsset' (emHdBindings.js, line 2970)
[Warning] Coding Error: in _GetSchemaKindFromPlugin at line 273 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolOpenVDBAsset' (emHdBindings.js, line 2970)
[Warning] Coding Error: in _GetSchemaKindFromPlugin at line 273 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolVolume' (emHdBindings.js, line 2970)
[Warning] Coding Error: in _GetSchemaKindFromPlugin at line 273 of /home/schroek/src/USD_schroek/pxr/usd/usd/schemaRegistry.cpp -- Failed to find plugin for schema type 'UsdVolField3DAsset' (emHdBindings.js, line 2970)
I think this is connected to animations. See here: #11
It's most likely on the wasm side of things, but not sure when/how it could be supporting what is missing
It seems like the wasm side is not compiled with openvdb support. Maybe your files have simulation data in them?
@meshula No idea! What about the file provided by @Alyona2209 in the issue?
Yeah, my apologies, I just checked the contents of the file. The file is well formed, and the balloon is animated in various programs that I checked. I just opened the file in usdedit
and searched through it, there's nothing in the file related to the warnings reported coming from emHdBindings.js
. I misunderstood that you thought they were related to the problem when you meant that you see the same warnings.
@meshula I'm seeing the errors in the console as I pasted above, which seems to be the same errors as @Alyona2209 saw in the screenshot and with the file attached in the first message of the issue.
Could you maybe also check the files pointed on there https://github.com/ponahoum/three-usdz-loader/issues/11 :
- https://developer.apple.com/augmented-reality/quick-look/models/stratocaster/fender_stratocaster.usdz => said to not have animations and to work with the loader
- https://developer.apple.com/augmented-reality/quick-look/models/drummertoy/toy_drummer_idle.usdz => said to have animations and not work with the loader
The files that don't work on my side seem to have animations too. Maybe toy_drummer_idle.usdz
is a good way to investigate?
Those files work in Quicklook and other places. The problem must be with three-usdz-loader itself.
@meshula @GregOriol @Alyona2209 thanks for the report. The issues you are encountering with those files are very likely to be within the wasm side of things indeed. As mentioned in the readme, this library is just a wrapper around autodesk wasm adaptation of usd. It could be some missing extensions during compilation, or something else. I don’t have much time right now to investigate, but I would encourage you to compile autodesk usd repository yourself, and see if compiling with those extra extensions fixes your issues.
I plan to investigate about all of those issues as soon as I have time, thanks for your understanding !