-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f3d-web does not support loading OpenUSD files #1676
Comments
Hi @jo-chemla Indeed, this is correct, afaik OpenUSD does not seems trivial to build for WebAssembly. I'm adding this to the main WebAssembly issue: #1252 |
Indeed, this is missing (FYI @stepperpig ) |
@jo-chemla your analysis is correct. |
Wow that was fast. Thank you both for getting back and adding this to this mega-thread. For some references,
|
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
The text was updated successfully, but these errors were encountered: