
# Objective Fix gltf validation errors in `Fox.glb`. Inspired by #8099, but that issue doesn't appear to describe a real bug to fix, as far as I can tell. ## Solution Use the latest version of the Fox from [glTF-Sample-Assets](https://github.com/KhronosGroup/glTF-Sample-Assets/blob/main/Models/Fox/glTF-Binary/Fox.glb). ## Testing Dropped both versions in https://github.khronos.org/glTF-Validator/ `cargo run --example animated_mesh` seems to still look fine. Before: ``` The asset contains errors. "numErrors": 126, "numWarnings": 4184, ``` After: ``` The asset is valid. "numErrors": 0, "numWarnings": 0, ``` ## Discussion The 3d testbed was panicking with ``` thread 'main' panicked at examples/testbed/3d.rs:288:60: called `Result::unwrap()` on an `Err` value: QueryDoesNotMatch(35v1 with components Transform, GlobalTransform, Visibility, InheritedVisibility, ViewVisibility, ChildOf, Children, Name) ``` Which is bizarre. I think this might be related to #17720, or maybe the structure of the gltf changed. I fixed it by using updating the testbed to use a more robust method of finding the correct entity as is done in `animated_mesh`.
2.3 KiB
2.3 KiB
Bevy Credits
Adapted Code
- hecs
- legion_transform
- wgpu-rs examples
- yaks: ArchetypeSet, borrowed some ideas from their scheduler implementation
Inspiration
- game engines: amethyst, coffee
- ecs: legion, shipyard, yaks
Assets
- Generic RPG Pack (CC0 license) by Bakudas and Gabe Fern
- Environment maps (
.hdr
files) from HDRIHaven (CC0 license) - Alien from Kenney's Space Kit (CC0 1.0 Universal)
- Cake from Kenney's Food Kit (CC0 1.0 Universal)
- Ground tile from Kenney's Tower Defense Kit (CC0 1.0 Universal)
- Game icons from Kenney's Game Icons (CC0 1.0 Universal)
- Space ships from Kenny's Simple Space Kit (CC0 1.0 Universal)
- UI borders from Kenny's Fantasy UI Borders Kit (CC0 1.0 Universal)
- glTF animated fox from glTF Sample Models
- Low poly fox by PixelMannen (CC0 1.0 Universal)
- Rigging and animation by @tomkranis on Sketchfab (CC-BY 4.0)
- FiraMono by The Mozilla Foundation and Telefonica S.A (SIL Open Font License, Version 1.1: assets/fonts/FiraMono-LICENSE)
- Barycentric from mk_bary_gltf (MIT OR Apache-2.0)
MorphStressTest.gltf
, MorphStressTest (CC-BY 4.0 by Analytical Graphics, Inc, Model and textures by Ed Mackey)- Mysterious acoustic guitar music sample from florianreichelt (CC0 license)
- Epic orchestra music sample, modified to loop, from Migfus20 (CC BY 4.0 DEED)