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

Please provide HAnim related info in conversions from glTF as metadata #60

Open
coderextreme opened this issue Sep 9, 2023 · 2 comments

Comments

@coderextreme
Copy link

Please provide HAnim information, if provided in glTF, as Metadata in X3D (VRML and XML). At a minimum, try to identify HAnimJoints and HAnimHumanoid info, like any extra information in glTF exports from Blender that might be useful . I will work on Python exports of Armature, Bones, Animation and skin coord info from Blender. I’m not promising an X3D solution at this time, just humanoids in some form, with ChatGPT help.

@michaliskambi
Copy link
Member

michaliskambi commented Sep 11, 2023

See the https://github.com/michaliskambi/x3d-tests/wiki/Converting-glTF-to-X3D about what we do now, and what we plan to do with regards to skinned animation in CGE/view3dscene.

I'll see how to expose this without adding much work. Maybe metadata, maybe some new node like "SkinAnimation" (that, at least for start, would be considered just internal / not-guaranteed-to-be-always-available). We have internally skin joints and skin weights, from glTF.

To be clear, this will not imply converting glTF -> H-Anim, at least not in the initial implementation. Again, see https://github.com/michaliskambi/x3d-tests/wiki/Converting-glTF-to-X3D#skinned-mesh-animation about our plans -- we are not 100% certain if we'll convert glTF skinned animation to H-Anim, or just to something special (like "SkinAnimation" node), in CGE. That is: We know it's possible to convert glTF skinned animation to H-Anim, but we don't know if it will be efficient for CGE needs, which include "efficient usage of glTF information for skinned animation", since almost all CGE users now use skinned animation through glTF (not H-Anim).

But we can naturally expose joints and weight information from glTF in one way or another, to be available for software reading about X3D, so sure we'll do this.

@coderextreme
Copy link
Author

I guess I lost my comment. What is critical right now is adding a place for an HAnimHumanoid node (Could be a Transform or MetadataString where HAnimHumanoid node will go) in glTF conversions to VRML.

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