-
Notifications
You must be signed in to change notification settings - Fork 5
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
UsdGlTFFileFormat::Read
fails to files with non-filesystem resolvedPath
s.
#24
Comments
Thank you very much for this report! This is an oversight, and your proposed solution makes sense. Will implement it soon-ish! |
Additionally, I think you want to return relative paths for existing on-disk assets. At the moment you get absolute paths like |
Hi, I just implemented the feature in this branch. I have yet to test it with an actual custom resolver. EDIT: it's now in dev and will be released soon. |
This is now implemented in v0.4, thanks for the patience! |
Hi! I tried to get guc working with the custom resolver I've been working on but unfortunately it fails upon trying to load the file:
Failed to open "iroh://doc/pajzuzssv2l7wg7iruxixkbc7nfcm42gqfqbmzz5hux4im4v2yea/m5wfirrpirqw2ylhmvseqzlmnvsxilthnr2gmaa.gltf" - unable to parse glTF file: file not found
The problem is that this code assumes that
resolvedPath
is on the local filesystem:guc/src/libguc/src/fileFormat.cpp
Lines 97 to 106 in 0fb7f76
Ideally you'd call something like
ArGetResolver().OpenAsset(resolvedPath)
to get anArAsset
and then use the bytes fromArAsset::GetBuffer
to load the glTF data. This is a bit of a hastle not gonna lie, but it would mean that assets using custom URI schemas (iroh://
for me, but alsohttp://
) would load perfectly.The text was updated successfully, but these errors were encountered: