Home › Forums › General Questions › Shape Key Animation Error/bug
Tagged: animation, Error, flickering, shape key
- This topic has 9 replies, 3 voices, and was last updated 1 year, 11 months ago by Alexander Kovelenov.
-
AuthorPosts
-
2022-06-02 at 9:46 am #52590fred7Customer
Hello,
I got some errors when playing a keyframed shape key animation.Edit: I looked further into it. It seems that when the animation is triggered it will play the correct key 1 which I keyframed, but also tries to play an animation for key2 where there are no keyframes defined. It just uses the same duration from key1 to morph key2 from 1 to 0, which is the animation of key1 but with some keyframes and specific values in between. So how do I tell Verge3D, to only play the keyframed shape key? And why it even tries to play an animation, when there is none?
Also tried with Verge3D 4 Pre4
When I first set it up, everything was fine. I defined the shape key for the length of the plane and animated it with key frames:
Please see: working animationThen I added another shape key to control the width by setting the morph factor. Then things went wrong.
First of all the plane is flittering during the animation like hell. But in the next video attached, it was not possible to record the flickering, neither was it when I tried to film it with my phone. So I guess something with the framerate/playback is wrong. I switched through different framerate settings in Blender (24,25, 29.97, 30, 60) but that didn’t do the trick.– Edit: Should be fixed when the problem with the animation of the wrong shape key is solved.Next big problem is, that the animation doesn’t take the current value for the width shape key in account. While I think during the animation you can see the min and max value of the width flickering, at the end of the animation it is set randomly to either the min or the max width, but not the correct set morph factor.
In the video you can see the cube in the background, which is always the width the plane should be.
Please see: Shape Key Animation ErrorI am on Blender 3.0.1 and Verge 3.9.1
Thanks!
2022-06-02 at 1:52 pm #52604Mikhail LuzyaninStaffshare the blend file we will look at.
Co-founder and lead graphics specialist at Soft8Soft.
2022-06-02 at 2:03 pm #52606fred7CustomerHello Mikhail,
Thank you for the reply. I just sent the file to you via email.2022-06-03 at 7:17 am #52635Mikhail LuzyaninStaffThis is some kind of limitation: you need to set a keys for all shapekeys to see them animated correctly. I mean: if you have (for example) three shapekeys and only first animated you need to animate first shapekeys as you want and other set keys by zero value at first frame. This mean that you can’t keep you object animated and changing shapekeys by puzzles simultaneously. To achieve what you want you can use Animate Param puzzles instead of animation. So if you plan only to animated your shapekeys just set keys for all shapekeys, otherwise use puzzles to manipulate shapekeys.
Co-founder and lead graphics specialist at Soft8Soft.
2022-06-03 at 8:34 am #52638fred7CustomerThank you for looking into this. That’s unfortunate, I can’t set keyframes for the second shapekey as then my parametric model will be reset on the event of animation triggered.
Or is there a way to change the value of an keyframe within Verge3D? Then I can set up keyframes for shapekey 2, on first and last frame in Blender and when the animation is triggered, Verge3D gets the current value of the shapekey 2 and set this value for those 2 keyframes before starting the animation. That would be a good workaround if possible.
With the the Animate Param puzzle I am not sure how to do it in an efficient way, as for my 60 frames animation it is not just 0 to 1 but with specific values every 5 frames because the movement is not linear. And will have to do dozens of that animations.
Thanks in advance!
2022-06-03 at 1:53 pm #52647Mikhail LuzyaninStaffIf you use keyframes animation with shapekeys you can’t set shapekeys wih puzzles while animation is playing it will always reset it to keyframes. the only way is to use Animate param puzzle.
Co-founder and lead graphics specialist at Soft8Soft.
2022-06-08 at 11:57 am #52796fred7CustomerSo this is a Verge3D limitation and should be doable in general with three.js?
2022-07-14 at 2:04 pm #54135fred7CustomerAnd will it be possible in a future release of Verge3D? Any plans?
2022-12-05 at 1:34 pm #588502022-12-06 at 9:40 am #58859Alexander KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.