-
-
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
Gltf scene is not properly rendered. #6679
Comments
@alice-i-cecile 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. |
This looks like a gltf file with multiple sub-scenes. Have you tried changing or removing |
@alice-i-cecile Removing #scene0 still the same. |
And changing it to e.g. #scene1? Does that change what's displayed? Are there multiple scenes withing the gltf file? |
@alice-i-cecile I'm loading it directly with file path and omit #scene section like |
@mockersf you've looked into 3D much more than I have; any ideas on where to look? |
@mockersf It is created by Blender. Here is the blender file. |
@AllenDang there are two scenes in your blender file (and your glb too I guess) If in blender you delete the "Library" scene, or if you try to display the second scene in Bevy, you will get what you expect. |
@mockersf I think we should iterate and display all models from all scenes if no scene is specified. |
# Objective - Fixes bevyengine#6630, fixes bevyengine#6679 - Improve scene viewer in cases where there are more than one scene in a gltf file ## Solution - Can select which scene to display using `#SceneN`, defaults to scene 0 if not present - Display the number of scenes available if there are more than one
# Objective - Fixes bevyengine#6630, fixes bevyengine#6679 - Improve scene viewer in cases where there are more than one scene in a gltf file ## Solution - Can select which scene to display using `#SceneN`, defaults to scene 0 if not present - Display the number of scenes available if there are more than one
Bevy version
0.9.0
[Optional] Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
cargo --version
)What you did
Load a gltf scene from file.
What went wrong
The whole scene should be rendered properly.
Here is the screen shot from https://gltf-viewer.donmccurdy.com/
Only one model is rendered.
Additional information
Here is a minimal code to reproduce. Make sure to enable "jpeg" feature for bevy in
Cargo.toml
.Here is the gltf model to repo.
shu.glb.zip
The text was updated successfully, but these errors were encountered: