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

BoxAnimated.gltf doesn't animate correctly #52

Closed
sakrist opened this issue Oct 23, 2017 · 5 comments
Closed

BoxAnimated.gltf doesn't animate correctly #52

sakrist opened this issue Oct 23, 2017 · 5 comments

Comments

@sakrist
Copy link

sakrist commented Oct 23, 2017

Here is model:
https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BoxAnimated

@donmccurdy
Copy link
Owner

Previewing the model at this URL:

https://gltf-viewer.donmccurdy.com/#model=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BoxAnimated/glTF/BoxAnimated.gltf

... if you press the "Animation -> playAll" button, it will play both animations together, correctly. By default the viewer plays only the first animation — it is an error in the sample models that they contain many animation clips meant to be treated as one.

@sakrist
Copy link
Author

sakrist commented Oct 23, 2017

Oh my ... (read issue you pointed at)....

If I press play all animations, they still play incorrectly.

@donmccurdy
Copy link
Owner

Incorrectly in what way?

@sakrist
Copy link
Author

sakrist commented Oct 23, 2017

they play independently, and then don't match same timeline.
Or it's feature?

@donmccurdy
Copy link
Owner

Hm you're right. The movement and rotation of the purple box shouldn't be two separate clips, per the issue above, but they are and unfortunately the lengths of those two tracks are different:

screen shot 2017-10-27 at 8 32 23 am

So, it's probably a further bug in the model itself. Maybe even in the COLLADA file this glTF was created from, but I suspect just the glTF conversion. The playback is also broken in BabylonJS's viewer, in the same way: http://sandbox.babylonjs.com/

I've filed an issue on the sample models repo, here: KhronosGroup/glTF-Sample-Models#126

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

No branches or pull requests

2 participants