Donkey-play-Violin.zip
Describe the bug
I exported an animation from one of our current projects but noticed that modelviewer/threejs have trouble with it; it seems that the animation is interpreted incorrectly. There are some warnings but I think they should not cause this behaviour, especially as it works fine in other viewers.
To Reproduce
Steps to reproduce the behavior:
- Go to https://gltf-viewer.donmccurdy.com/
- Import the attached file
- Go to https://sandbox.babylonjs.com/
- Import the attached file
- Note that Babylon exhibits the correct (desired) behaviour, same as Microsoft 3D Viewer.
Expected behavior
Correct animation playback.
(correct, Babylon sandbox)
Screenshots
Platform:
- Device: [Desktop, Mobile]
- OS: [Windows, MacOS, Linux, Android, iOS]
- Browser: [Chrome, Firefox, Safari, Edge]
EDIT: I believe this is because objects have different hierarchies but the same object names that are differently animated, and seems three doesn’t take the object hierarchy into account when animating, only the object name?
It seems #20880 did the trick.
Complex example also seems to work 🙂 Happy Holidays!
