-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Crash when loading a gltf model. #6710
Comments
@nicopap I know the core dev of bevy may not have time to fix it now, I'm wondering if you or anyone could give me a hint about where should I start to look at, I could start fixing this and contribute a PR. |
It looks like the texture format is the culprit here, try saving the model textures in a different format |
@nicopap This model could be normally imported and rendered in various engines including Godot/Unreal/Unity/Raylib, so I'm thinking about to fix the compatibility of bevy. |
I'm not sure what is causing this. I think you might some luck looking at the code that the following PR changed #5527 Otherwise, it would be in the GLTF loader (bevy_gltf/src/loader.rs iirc) you'd need to make sure the image data is properly handled when the GLTF is loaded. |
One of the texture in the glb file is in a format not expected by Bevy. If I manually convert it to another format, it renders: Short term, you can use the converted glb file here: PIPIXIA-converted.glb.zip Longer term, Bevy could convert the texture when loading the glb file to a supported format |
@mockersf Can you tell me which texture causes this issue? |
I think it was the normals |
@mockersf Thanks, I'll see what I can do there. |
Should be fixed by #9611 |
…9611) # Objective fix bevyengine#8185, bevyengine#6710 replace bevyengine#7005 (closed) rgb and rgba 16 bit textures currently default to `Rgba16Uint`, the more common use is `Rgba16Unorm`, which also matches the default type of rgb8 and rgba8 textures. ## Solution Change default to `Rgba16Unorm`
Bevy version
0.9.0
What you did
Spawn a scene from a glb file and bevy crashed.
Error message is
It could be rendered normally via gltf viewer.
Here is the glb file leads to the crash.
PIPIXIA.glb.zip
The text was updated successfully, but these errors were encountered: