-
-
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
Remaining issues with the gltf loader #1802
Comments
I've adressed vertex colors in #1775 |
This allows the `glTF-Embedded` variants in the [sample models](https://github.com/KhronosGroup/glTF-Sample-Models/) to be used. The data url format is relatively small, so I didn't include a crate like [docs.rs/data-url](https://docs.rs/data-url/0.1.0/data_url/). Also fixes the 'Box With Spaces' model as URIs are now percent-decoded. cc #1802
If the gltf loader encounters a mesh without normal attributes, it will duplicate the vertex attributes and compute flat normals, as defined by https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes: > **Implementation Note**: When normals are not specified, client implementations should calculate flat normals. ![image](https://user-images.githubusercontent.com/22177966/113483243-bb204880-94a2-11eb-8fa1-c4828a4882c5.png) Helps with #1802 Co-authored-by: Carter Anderson <[email protected]>
This allows the `glTF-Embedded` variants in the [sample models](https://github.com/KhronosGroup/glTF-Sample-Models/) to be used. The data url format is relatively small, so I didn't include a crate like [docs.rs/data-url](https://docs.rs/data-url/0.1.0/data_url/). Also fixes the 'Box With Spaces' model as URIs are now percent-decoded. cc bevyengine#1802
fixes a lot of gltf loading failures (see #1802)
@jakobhellermann I was doing a similar work here, can you post the link for your test repo? |
This allows the `glTF-Embedded` variants in the [sample models](https://github.com/KhronosGroup/glTF-Sample-Models/) to be used. The data url format is relatively small, so I didn't include a crate like [docs.rs/data-url](https://docs.rs/data-url/0.1.0/data_url/). Also fixes the 'Box With Spaces' model as URIs are now percent-decoded. cc bevyengine#1802
If the gltf loader encounters a mesh without normal attributes, it will duplicate the vertex attributes and compute flat normals, as defined by https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes: > **Implementation Note**: When normals are not specified, client implementations should calculate flat normals. ![image](https://user-images.githubusercontent.com/22177966/113483243-bb204880-94a2-11eb-8fa1-c4828a4882c5.png) Helps with bevyengine#1802 Co-authored-by: Carter Anderson <[email protected]>
fixes a lot of gltf loading failures (see bevyengine#1802)
This allows the `glTF-Embedded` variants in the [sample models](https://github.com/KhronosGroup/glTF-Sample-Models/) to be used. The data url format is relatively small, so I didn't include a crate like [docs.rs/data-url](https://docs.rs/data-url/0.1.0/data_url/). Also fixes the 'Box With Spaces' model as URIs are now percent-decoded. cc bevyengine#1802
For now we can't play gltf animations right? Only import? |
@wotori I think you are referring to #3751, which has not been merged yet. This PR includes an example of playing simple animations; stuff like skeletal animation would only make sense to implement after #4026 is completed (see bevy_prototype_animation) |
I believe this is fixed (see #1331). And I can confirm that lights work (after checking "Punctual lights" in blender export settings for glTF). Can this item be crossed off the list? Or are there other light options that aren't supported? |
"Texture Transform (TextureTransformMultiTest, TextureTransformTest)" was probably resolved by #11869 |
fixes a lot of gltf loading failures (see bevyengine/bevy#1802)
I've tried all the gltf samples models from here and while many already load, here's the list of remaining issues:
TODO:
AnimationsTwo Sided (TwoSidedPlane)"Embedded" gltf variants (inline data URIs)CamerasVertex colors (VertexColorTest)data URIs in imagesMissing Vertex_NormalMissing UVBugs:
glTF-Sample-Models/2.0/SheenCloth/glTF/SheenCloth.gltf (range end index 263168 out of range for slice of length 262144)glTF-Sample-Models/2.0/Box With Spaces/glTF/Box With Spaces.gltf (failed to load path)The text was updated successfully, but these errors were encountered: