Skip to content
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

gltf containing absolute (Windows) paths fail to import with duplicated prefixes #131

Open
izzyboris opened this issue Mar 31, 2024 · 0 comments

Comments

@izzyboris
Copy link

blend2bam v0.25.0 in 'ref' textures mode can produce gltf outputs containing absolute Windows paths. These break gltf2bam imports by producing a path that has the directory part of the path duplicated. The glTF spec only addresses 'relative' URIs as part of the standard, leaving any more fragile extensions to the uri property of images up to implementors.

It seems reasonable to allow gltf2bam to detect an absolute path and deal with it sanely.

  • Using a .blend file referencing an external texture, attempt to base.loader.loadModel("foo.blend") and run the Panda3d program on Windows.
  • blend2bam v0.25.0 (with textures=ref) leaves an absolute image reference that panda3d-gltf interprets as, e.g., "/c/Users/username/path/assets/models//c/Users/username/path/assets/models/texture.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant