Open nvidia-jomiller opened 7 months ago
Filed as internal issue #USD-9340
Hi @nvidia-jomiller - we'd be keen on a PR for this one, especially if it comes with a test case (I reckon an abc inside a usdz should exercize the non-FILE aspect of OpenAsset and IArchive sufficiently?
Hey @spiffmon, thanks for taking a look!
That's a great point and I think a usdz would work in this scenario. I'll test out the usdz approach so it can be added as a repro case here and used as a test case for a PR later on.
Updated the description of the issue with steps to reproduce the error with a USDZ. Thanks for the suggestion @spiffmon!
I'm not sure when I'll have bandwidth to submit a PR but this issue seems like it might be a good candidate for someone to get their feet wet with Ar APIs and SdfFileFormat plugins
@spiffmon Hi, Spiff. I created a PR to fix the Abc file plugin issue. I left the detailed descriptions in the PR about different solutions we currently tried and their cons and pros. While it still works only for Windows, it's submitted so we can have discussions first to see which direction we should go forward.
@nvmkuruc @nvidia-jomiller for vis.
Description of Issue
We are unable to load any Alembic
SdfAssetPath
s that resolve to a non file-based path such as a URL / URI. The internal implementation of UsdAbcAlembicFileFormat::Read always assumes that the providedresolvedPath
argument is a normal file path that can be fed directly to Alembic'sIArchive
. IfresolvedPath
is a URL Alembic will fail with an Unsupported format: 'Unknown' error since theUsdAbcAlembicFileFormat
has not converted, or mapped,resolvedPath
to something that Alembic'sIArchive
can load. Ideally,UsdAbcAlembicFileFormat
should useArGetResolver().OpenAsset()
with theArAsset
API to make sure that the underlying ArAssetResolver plugin is invoked when trying to load Alembic assets.Steps to Reproduce
/some/path/repro
/some/path/repro
usdview Scene.usdz
System Information (OS, Hardware)
Windows 11 Enterprise Processor AMD Ryzen Threadripper PRO 3975WX 32-Cores 3.50 GHz Installed RAM 128 GB (128 GB usable)