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
A-AssetsLoad files from disk to use for things like images, models, and soundsA-glTFRelated to the glTF 3D scene/model formatC-BugAn unexpected or incorrect behavior
Added a custom asset source and tried loading a GLTF with it.
Loading simple assets (e.g. single file images) works fine.
What went wrong
It finds the gltf file, but fails to load the scene.bin mentioned within the GLTF.
Additional information
Logs
2023-12-07T13:22:34.813576Z ERROR bevy_asset::server: Failed to load asset 'gltf://FlightHelmet.gltf' with asset loader 'bevy_gltf::loader::GltfLoader': failed to read bytes from an asset path: path not found: <path>/bevy/assets/FlightHelmet.bin
2023-12-07T13:22:34.813584Z ERROR bevy_asset::server: Failed to load asset 'gltf://FlightHelmet.gltf' with asset loader 'bevy_gltf::loader::GltfLoader': failed to read bytes from an asset path: path not found: <path>/bevy/assets/FlightHelmet.bin
Minimal reproduction
Make a folder foo and copy-paste the flight helmet files into it first.
This is the problem that would be resolved by Relative Asset Paths. See the end of this PR description for details: #9885.
I don't think we have an issue tracking this yet so we can use this one.
cart
added
A-Assets
Load files from disk to use for things like images, models, and sounds
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Dec 7, 2023
Just making a note that I tried this on Bevy 0.13 and the results were the same:
Adding a custom asset source and doing my-assets://FlightHelmet.gltf finds the GLTF file in the correct location, but the related FlightHelmet.bin is not found since the GltfLoader is not aware of the initiating asset source.
A-AssetsLoad files from disk to use for things like images, models, and soundsA-glTFRelated to the glTF 3D scene/model formatC-BugAn unexpected or incorrect behavior
Bevy version
Recent main: d2614f2
What you did
Added a custom asset source and tried loading a GLTF with it.
Loading simple assets (e.g. single file images) works fine.
What went wrong
It finds the gltf file, but fails to load the
scene.bin
mentioned within the GLTF.Additional information
Logs
Minimal reproduction
Make a folder foo and copy-paste the flight helmet files into it first.
It seems when loading the
scene.bin
it tries look in the default asset source instead of the one used for the GLTF "parent asset".The text was updated successfully, but these errors were encountered: