-
-
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 Loader - trouble with blender exports #427
Comments
The current GLTF loader is pretty limited. It only loads the first mesh it finds. More complex multi-mesh files fill break down (among other things). Could you attach an example of a cube exported from blender that doesn't load? |
Thanks cart, included in the zip are two exported cube gltf files from blender 2.9, one using the embedded option and one using the separate assets option. |
This should largely be resolved by #693 |
Seems like this bug reappear in 0.3, I attach the file which is not showing but no errors. |
I'm seeing same problem: I can use blender exported
I don't get anything rendered. |
This load the whole GLB file, not just a mesh If you're just interested in a mesh, you can target it specifically by adding bevy/examples/asset/asset_loading.rs Line 20 in f61e44d
Or if you want to display a whole scene from the file, check this example: Line 13 in f61e44d
|
Where can I find the definition of the Thank you for helping! |
to apply a transform on a scene, you can check this example : https://github.com/bevyengine/bevy/blob/main/examples/3d/update_gltf_scene.rs |
I must be missing something simple.
I am able to spawn Suzanne and the other gltf files provided in the assets/models folder just fine.
However when I try to use a different gltf file it loads them without error however they do not seem to be rendered.
I have tried gltf files exported from Blender as well as from window's 3D Viewer. I have tried very simple meshes including the default cube and ensured UVs and normals exist. I have tried including a material and not. I have tired adding vertex coloring in case it mattered. I tried every export option I could see.
Not sure what I am missing but if any one has any ideas any help would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: