Blender_bevy_components_workflow icon indicating copy to clipboard operation
Blender_bevy_components_workflow copied to clipboard

Problems with bounding boxes and animation mixing

Open DylanRJohnston opened this issue 1 year ago • 4 comments
trafficstars

I've been encountering a weird issue where at certain camera angles portions of the mesh of a blueprinted entity are culled.

Apr-10-2024 19-19-43

Enabling AABB gizmos shows a bunch of bounding boxes floating off in space.

Screenshot 2024-04-11 at 10 42 51 am

Inspecting the original model, and the one exported from blender show large differences in their reported bounding boxes and the animations from the different models are getting all mixed in together.

Screenshot 2024-04-11 at 10 36 13 am

Screenshot 2024-04-11 at 10 37 47 am

Perhaps I'm doing something catastrophically incorrect with the way I've setup my blender project but I've followed the video guides closely and can't figure out what I'm doing incorrectly.

DylanRJohnston avatar Apr 11 '24 02:04 DylanRJohnston

Copying the original glb file over the exported one in the library folder results in the correctly placed bounding boxes.

Screenshot 2024-04-11 at 11 33 11 am

DylanRJohnston avatar Apr 11 '24 03:04 DylanRJohnston

This seems to be a related issue experienced by the three.js community https://github.com/mrdoob/three.js/issues/14499

DylanRJohnston avatar Apr 11 '24 03:04 DylanRJohnston

The animation mixing is still a problem, but I was able to solve the problem with the bounding boxes https://github.com/bevyengine/bevy/issues/11131. It appears to be an issue with bevy's handling of gltf skinned meshes.

DylanRJohnston avatar Apr 11 '24 04:04 DylanRJohnston

Hi @DylanRJohnston ! If I understand correctly :

  • the issue with bounding boxes is fixed by the fix in the thread on the Bevy github you linked to ?
  • the issue with animations is they get attached to the wrong model/blueprint or do all models have all animations from all other models ?

There is a HUGE pr that I hope to release this week that fixes a ton of issues with animations & changes the way animations are "attached" to blueprints, so I hope that will fix this issue as well. The PR on the Blender side is not quite consumption ready , but I'll ping you once it is.

kaosat-dev avatar Apr 15 '24 21:04 kaosat-dev