Hi, @carolhmj , thanks for asking! I have bin on vacation last few weeks, so I haven’t got any significant progress. I’ve returned to work on this progress on Monday and here are some questions that I have now.
Example for question 1
Here I’m trying to explore the animation object itself. I’m trying to get values of the
to values of the object. My animation has 80 frames, but the values logged to console are 0 and 3.3333…
The first question is - why does this happen?
Example for question 2
This idle-walk-run dummy example has no animation groups at all, but it uses skeleton and weighted animations instead. I have studied the documentation and didn’t see any good explanation of animation blending, except of this page. There are not so much information provided there. For example I’ve tried to use my animation group object as parameter for
beginWeightedAnimation() function instead of skeleton, but that had no effect at all. Then I’ve examined the dummy simulation and noticed, that there are no animationGroup at all and the skeleton is used for the animation.
So the second question is - maybe I am doing something wrong not with the code, but with the way I implement animation in my 3D model? I’ve found this video, but I am not sure that I have understood at least half of it.
I am totally not sure, that I am able to implement animation through skeleton programming, it seems pretty tricky from the video.
So the third question - is there any way to use AnimationGroup to create 2 separated weighted animations?
As far as I’ve understood from @PatrickRyan post - I have to use animation blending for my solution. The result will be:
- A model with an animation, where for example range 0-50 will be X axis rotation of the desk and 51-100 will be the Y axis rotation.
- Then I have to create 2
Yrotation and then, for example if I set
Xrotation weight to 0 and
Yrotation weight to the same value - I will see the desk tilted diagonally, on it’s corner, and for (1.0, 1.0) weights - the desk should be tilted same diagonal way, but on the opposite side (hope you understand what I mean, sorry ).
And the last, fourth and maybe the easiest question - have I understood the solution right?
Thank you for your patience.
P.S. It is a bit late, but hope you had good and happy holidays. Wish you only the best in the new year.