How to create custom animation from glb file with joints #1606
Replies: 2 comments
-
|
With your VsgVisitor you should be able to use object.className() to return a human readable name. With the GLB file I would have expected that the glTF loader would have inserted an vsg::AnimationGroup above the animated subgraph with vsg::Animation above it. These animations would do the animations for you. I don't see any AnimationGroup in the snippet you've provided which is curious. The vsganimation example illustrates how to find the Animation's and then activate them by assigning them to the viewer's vsg::AnimationManager. Could you try running vsganimation with your .glb file to see what happens? |
Beta Was this translation helpful? Give feedback.
-
|
Is there even an animation in the model? Some collections of assets will store them separately so you can reuse the same animations for several characters or sets of accessories without having to duplicate all the animations in all the assets. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I animate a model? I have a glb file with joints, but I'm lost trying to animate the model.
When I print the model I get something like this
I assume I need to use a
JointSampler, but I can't find any examples in vsgExamples.right now I have something like this, but I assume I need to add the joints and then somehow update the joint rotations
How do I set the rotation of lets say
joint:c_1from code?Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions