KhronosGroup / glTF

glTF – Runtime 3D Asset Delivery
Other
7.21k stars 1.14k forks source link

Bone Animation, not using Skinning #2408

Closed Winteradio closed 5 months ago

Winteradio commented 5 months ago

I am currently working on creating a simple viewer for bone animation using the glTF format before implementing skinning animation. However, it seems that the documentation and guides available mostly integrate bone (with simple cubes placed at joint positions) animation as part of skinning. There appears to be no separate guide specifically for using bones on their own.

Additionally, I am curious whether it is challenging to implement only bone animation using the animation data from within glTF, given that these animations are typically designed to interpolate the values of bones, rather than directly representing their movements.

javagl commented 5 months ago

This repository contains the specification of glTF itself. Issues here are intended for things that refer to the specification. General questions about implementations should rather be asked elsewhere, for example, in the forum at https://community.khronos.org/c/gltf-general/45 , or ... in a repository that is somehow closer to the implementation side.


That said... I don't fully understand what the question is. But I also needed a bit of time to get things like the Skinning sections of the tutorial right. The latest updates there happened in a pull request, where @emackey provided some really helpful descriptions, e.g. around

Maybe that already helps.

Winteradio commented 5 months ago

I'm sorry for just leave question for this repo. I'll take a closer look at the example. I'll leave a question post related to implementation on the site you provided.

Thank you for checking the question.

javagl commented 5 months ago

Yes, maybe the tutorial can be extended with further information about the implementation. If this is the case, you can open an issue with specific questions or suggestions at https://github.com/KhronosGroup/glTF-Tutorials/issues . But depending on where and how you want to implement this (in Three.js or BabylonJS or so...), then you might receive quicker (and more focussed) help at other places, like the forums.

UltraEngine commented 5 months ago

I don't see why there would be any problem when not using skins. I visualize skeletons and load animations from other glTF files with no issues. It would be just the same as displaying a BVH file or something like that.