Skip to content
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

Problems with bounding boxes and animation mixing #179

Closed
DylanRJohnston opened this issue Apr 11, 2024 · 4 comments · Fixed by #192
Closed

Problems with bounding boxes and animation mixing #179

DylanRJohnston opened this issue Apr 11, 2024 · 4 comments · Fixed by #192

Comments

@DylanRJohnston
Copy link

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
Copy link
Author

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
Copy link
Author

This seems to be a related issue experienced by the three.js community mrdoob/three.js#14499

@DylanRJohnston
Copy link
Author

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

@kaosat-dev
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants