dalboris / vpaint

Experimental vector graphics and 2D animation editor
http://www.vpaint.org
Apache License 2.0
737 stars 54 forks source link

Vpaint animate objects with different interpolation #113

Open ebarranco opened 4 years ago

ebarranco commented 4 years ago

Vpaint master and 1.7 Linux

When you try to animate more than 5 objects these animate with different interpolation. I show you here and I added the file.

jelly.vec.zip

dalboris commented 4 years ago

Thanks for the report!

I haven't looked at the file yet, but I think it's because some of your shapes are made of closed edges (they don't have vertices), while others are made of vertices and open edges. Currently, the interpolation of closed edges is linear (=bad / non-smooth!), while the interpolation of vertices is non-linear (= good / smooth, based on catmull-Rom), which in turns make open edges interpolation non-linear too (they must start and end at their vertices).

So open edges and closed edges aren't interpolated the same way. This is indeed a bug which results in the annoying behavior you demonstrated. We should improve the interpolation of closed edges to be as good as open edges. Workaround: add a vertex in the closed edges with CTRL+click in selection mode. :)

If I do a VPaint 1.8, I may try to fix this, I don't think it's very complicated.

ebarranco commented 4 years ago

The Workaround works @dalboris . Thanks.

dalboris commented 4 years ago

Great, thx for the feedback! :)