bevy/assets/models
Rob Parrett 0cb3eaef67
Fix validation errors in Fox.glb (#17801)
# 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`.
2025-02-11 22:19:24 +00:00
..
AlienCake
animated Fix validation errors in Fox.glb (#17801) 2025-02-11 22:19:24 +00:00
AnisotropyBarnLamp Implement PBR anisotropy per KHR_materials_anisotropy. (#13450) 2024-06-03 23:46:06 +00:00
barycentric
CornellBox
cube
cubes
DepthOfFieldExample fix lava emissive strength in depth of field example (#13449) 2024-05-21 19:35:08 +00:00
extras add handling of all missing gltf extras: scene, mesh & materials (#13453) 2024-06-03 13:16:38 +00:00
FlightHelmet
FlightHelmetLowPoly Implement visibility ranges, also known as hierarchical levels of detail (HLODs). (#12916) 2024-05-03 00:11:35 +00:00
GltfPrimitives Cosmetic tweaks to query_gltf_primitives (#16102) 2024-10-27 19:06:19 +00:00
GolfBall Implement clearcoat per the Filament and the KHR_materials_clearcoat specifications. (#13031) 2024-05-05 22:57:05 +00:00
IrradianceVolumeExample
MixedLightingExample Introduce support for mixed lighting by allowing lights to opt out of contributing diffuse light to lightmapped objects. (#16761) 2024-12-16 23:48:33 +00:00
PalmTree Implement percentage-closer soft shadows (PCSS). (#13497) 2024-09-18 18:07:17 +00:00
ship Use a ship in Transform::align example (#13935) 2024-06-20 00:58:00 +00:00
SimpleSkin
sphere
terrain Procedural atmospheric scattering (#16314) 2025-01-23 22:52:46 +00:00
TonemappingTest Implement filmic color grading. (#13121) 2024-05-02 12:18:59 +00:00
torus
VolumetricFogExample Implement volumetric fog and volumetric lighting, also known as light shafts or god rays. (#13057) 2024-05-16 17:13:18 +00:00
Box0.bin