You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a bug (in v0.11.0) when there is a relative path with ".." in a .gltf file.
(.gltf files store 3D models and are a slim variant of .glb files where textures and vertex data are not embedded, but stored in external files, so that you can reuse those for different 3D models.)
Without this plugin, both satellite.bin and solarpanel.jpg are correctly integrated into the model. I would expect the same when enabling this plugin.
Actual Result
satellite.bin is integrated correctly.
when looking for "../textures/solarpanel.jpg", it doesn't expand to "textures/solarpanel.jpg" but instead remains literally "models/../textures/solarpanel.jpg" and I get this error:
ERROR bevy_asset::server: Path not found: models/../textures/solarpanel.jpg
Workaround
My workaround was to move assets/textures/solarpanel.jpg to assets/models/textures/solarpanel.jpg so that there is no ".." in the uri parameter in the .gltf file anymore, but instead textures/solarpanel.jpg.
But it would be great if ".." would just work.
Thank you very much.
The text was updated successfully, but these errors were encountered:
Thanks for the great plugin, love it!
There's a bug (in v0.11.0) when there is a relative path with ".." in a .gltf file.
(.gltf files store 3D models and are a slim variant of .glb files where textures and vertex data are not embedded, but stored in external files, so that you can reuse those for different 3D models.)
Example setup
You can find this setup in my git repo at this specific commit: https://codeberg.org/outfly/outfly/src/commit/2873894003838ef9fcccdeb52538e49c23c1b48e
The file
satellite.gltf
contains references tosatellite.bin
and../textures/solarpanel.jpg
:Expected Result
Without this plugin, both satellite.bin and solarpanel.jpg are correctly integrated into the model. I would expect the same when enabling this plugin.
Actual Result
Workaround
My workaround was to move
assets/textures/solarpanel.jpg
toassets/models/textures/solarpanel.jpg
so that there is no ".." in the uri parameter in the .gltf file anymore, but insteadtextures/solarpanel.jpg
.But it would be great if ".." would just work.
Thank you very much.
The text was updated successfully, but these errors were encountered: