Jump to content

Last frame of animation flickers after changing


dreinzy
 Share

Recommended Posts

Using the action manager's .registerActon and .then, if I start the next interpolation before the previous one finishes, it looks like the last 'frame' briefly flickers while the second one is playing.

https://playground.babylonjs.com/#LXF99J

Click the sphere to start it moving, click it a second time before it's finished animating to see the effect.

Is this the expected behaviour? Is there a way of avoiding it?

Link to comment
Share on other sites

Even on your second example I can see it and it is expected because you have two concurrent animations on the same property. So depending on the internal animator, they will override the same property.

 

You will need to force the action to cancel other ones before running: https://playground.babylonjs.com/#LXF99J#2 (Check the last parameter of the InterpolateAction constructor)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...