Open jo-chemla opened 1 month ago
Hi @jo-chemla
Indeed, this is correct, afaik OpenUSD does not seems trivial to build for WebAssembly. Keep in mind F3DWeb is pretty experimental.
I'm adding this to the main WebAssembly issue: https://github.com/f3d-app/f3d/issues/1252
Also, the doc could explicit which flavors of OpenUSD extensions are supported here doc/user/SUPPORTED_FORMATS.md to add .usdz, .usda, .usdc
Indeed, this is missing (FYI @stepperpig )
@jo-chemla your analysis is correct.
In case you (or someone else) want to give it a try, we need to build USD in the Docker image here, and then enable the plugin in webassembly/build.sh
.
However, USD is using Boost and TBB, so these need to be installed in the Docker image too.
Wow that was fast. Thank you both for getting back and adding this to this mega-thread. For some references,
Also, the doc could explicit which flavors of OpenUSD extensions are supported here doc/user/SUPPORTED_FORMATS.md to add .usdz, .usda, .usdc
Indeed, this is missing (FYI @stepperpig )
Thanks, I've added it in our documentation: https://f3d.app/doc/user/SUPPORTED_FORMATS.html
Describe the bug The f3d-web is useful to load mesh files (via file browser or providing url-param). However, it cannot load OpenUSD files like
usd, usdz, usda, usdc
. The same files can be opened correctly with the desktop version of f3d.Files with such extensions won't be listed by the file explorer modal, and switching File-Explorer filter from
All supported types
toAll files
in order to select such a usd file will result in console errorFile /abc.usdz cannot be opened
To Reproduce Steps to reproduce the behavior:
File /abc.usdz cannot be opened
which come from here becausescene.supports(filePath)
returnsfalse
for files with usd extension (impl)Expected behavior Should the
DF3D_PLUGIN_BUILD_USD
flag simply be set toON
in webassembly/build.sh? It is currently not specified, hence probably defaulting to OFF. Seems that the OpenUSD plugin and flag were added in 2.3.0. ExtensionsEXTENSIONS usd usdc usda usdz
are correctly passed hereAlso, the doc could explicit which flavors of OpenUSD extensions are supported here doc/user/SUPPORTED_FORMATS.md to add
.usdz, .usda, .usdc