You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bezier curves for value interpolation over time #295
Currently Synfig uses complicated waypoint interpolation system, which is both confusing to edit (that's admittedly UI issue (#267), but nobody seems to be interested in fixing it for a long time) and hard to maintain (code is pretty messed up there). So while working on #272 i decided to switch to interpolation using bezier curves, which should be easier to understand and to make GUI for, as well as to implement and maintain.
From technical point of view, this reduces waypoints to holding a link to valuenode which does all the interpolating work. TimeCurve node (better name suggestions are welcome) is introduced to replace user-editable interpolation. Many current waypoints will be replaced by TimeCurve knots.
Throwing out current waypoint interpolation modes (it's necessary not for TimeCurve introduction, but for #272) will introduce incompatibility. Converter can be made, but required accuracy of it should be further evaluated, depending on whether there is actually any demand for it.
I know, even though it's still cumbersome (still got to have two build envs set up and rebuild every time). And i already have a few working branches even without module ones.
But regardless of that, i don't like monolithic codebase approach. Splitting whole synfig repo requires some effort though and pretty much impossible without breaking autotools, so it'll have to wait; but separating a bunch of experimental modules can be done easily, so i did that.
@morevnaproject@caryoscelus Thank you for this. I work with After Effects almost exclusively for motion graphics and animation effects plus some compositing, but I've always been looking for an open-source replacement and thought Synfig would fit that niche very well.
With that said I have to ask what do you think would be required to implement this? How much time? How much money? Any additional requirements? Is it possible to provide the community with an estimate? I'd love to help out coding but I'm not remotely proficient with C++ and I have no clue on how to build a proper computer app, although if there's a coding guide for Synfig, I'd like to review it in case I can find a developer that becomes interested in the project.
For now I can help to discuss the software logic, overview animation production use cases or testing the software 🙂
@Jose-Moreno sorry for the late reply. As far as i'm concerned, at this point synfig is not much better than dead (unless you're already using it..). That said, i already made this feature work (although it's not and unlikely to appear in official builds), though without friendly interface (as in screenshot above, you edit the curve on the canvas). Adding proper interface wouldn't be complex per se, but with the way synfig is coded it would still take some non-trivial effort which i'm not interested to make.
@caryoscelus Ah that's unfortunate. I really had high hopes for this to be honest. As mentioned before been searching for an After Effects FOSS replacement for a long time and I thought Synfig was it after understanding its use cases.
The application certainly has its strengths but along this particular issue, there are just too many other things that can undermine productivity in a studio pipeline when using it, and sadly producers and artists in general will rather use what they know / are familiar with / is proven, than to spend in R&D for industry's sake.
I think my best bet right now still is to learn software development and C++ to help with these FOSS projects. When and how I suppose that remains to be seen. Thanks again for your sincere answer! 🙂
Hello, guys!
I assumed that from the outside it would look like this. But I did not think that it would look so bad :)
First of all. Project is not dead. And in active development.
Yes, at the moment there are not so many changes as we would like. But it should be so.
So now what is in the priority:
Stability
Documentation
User interface
Rendering speed
Codebase
Simplify build
We have already discussed curves with Konstantin (@morevnaproject), but agreed that we will tolerate a little more and focus on the priority tasks.
@ice0 Thank you for the information! Well I was a bit surprised about the "dead project" commentary but since it's not that unusual for these type of FOSS projects (and I'm new to the development side of Synfig) I didn't think to question it, so I thank you for taking the time to explain the current project focus as well as pointing out who is doing what during the stabilization period.
I truly agree that is critical to stabilize and bug-fix any program before getting into feature requests, particularly if those have complex implementations like this one.
With that said, I'll try my best to use and test Synfig thoroughly for different types of animation projects to see If at least is possible to contribute to it by improving the external "image" that other communities and artists might have of the project. I believe it's important to have professional content made with the software to gather enough attention from the outside, and while curve editing is important for an animator, it's not impossible to animate without it so i think we can hold on for a while 🙂
Well, this is certainly not the best place to argue about project status and plans, but the problem is that it seems there is no other public place for that anymore. Not mentioning any other delicate problems and observable history, i can base my opinion simply on being familiar with the code. Unless someone would use some intelligent automatic refactoring systems (i have no idea whether any existing ones would be intelligent enough), i consider that working with synfig code has no ultimate merit, compared even to rewriting it with the same set of features. That is, apart from making money and improving workflow for existing long-term projects.
But i can see that anyone who has freshly come to synfig can have different opinion. In the end, it is not impossible that after a few "generations" of people coming and going, one of those "generations" would make a breakthrough. Those who do code can judge that probability from code and for those who don't i'd recommend checking out the long synfig's history.
Any updates on this issue? Is this gonna be standardized?
Also @caryoscelus you mentioned that a convertor can be made, can you elaborate on that? How would you convert the current interpolation methods into the bezier curve for value interpolation.
This will be handy in #704 , because lottie and adobe AE currently use bezier interpolation.
How would you convert the current interpolation methods into the bezier curve for value interpolation.
Well, any continuous real -> real function can be approximated with beziers. In fact, there is already some conversion like that implemented in synfig for freehand tool. Though of course it would be better to be able to preserve or at least control amount of key points.
There are two different approaches to this. First is to learn how
both TCB and bezier works and then look for possible approximation
from there. Another is to "forget" what TCB is and treat it like a set
of points (or blackbox continuous function) and use generic algorithm
for curve fitting. I'm not an expert on the subject, but [1] seems to
have somewhat detailed description (though it describes 2d curve
fitting and i'm not sure that's what you want).
[1]: https://pomax.github.io/bezierinfo/#curvefitting
Activity
caryoscelus commentedon Feb 15, 2017
Moved to https://github.com/caryoscelus/synfig-playground so that there's no need to switch branches to build it.
morevnaproject commentedon Feb 15, 2017
You can clone into different directory on your workstation and have tow instances of source code. ^__^
caryoscelus commentedon Feb 15, 2017
I know, even though it's still cumbersome (still got to have two build envs set up and rebuild every time). And i already have a few working branches even without module ones.
But regardless of that, i don't like monolithic codebase approach. Splitting whole synfig repo requires some effort though and pretty much impossible without breaking autotools, so it'll have to wait; but separating a bunch of experimental modules can be done easily, so i did that.
Jose-Moreno commentedon Jul 15, 2018
@morevnaproject @caryoscelus Thank you for this. I work with After Effects almost exclusively for motion graphics and animation effects plus some compositing, but I've always been looking for an open-source replacement and thought Synfig would fit that niche very well.
With that said I have to ask what do you think would be required to implement this? How much time? How much money? Any additional requirements? Is it possible to provide the community with an estimate? I'd love to help out coding but I'm not remotely proficient with C++ and I have no clue on how to build a proper computer app, although if there's a coding guide for Synfig, I'd like to review it in case I can find a developer that becomes interested in the project.
For now I can help to discuss the software logic, overview animation production use cases or testing the software 🙂
caryoscelus commentedon Jul 27, 2018
@Jose-Moreno sorry for the late reply. As far as i'm concerned, at this point synfig is not much better than dead (unless you're already using it..). That said, i already made this feature work (although it's not and unlikely to appear in official builds), though without friendly interface (as in screenshot above, you edit the curve on the canvas). Adding proper interface wouldn't be complex per se, but with the way synfig is coded it would still take some non-trivial effort which i'm not interested to make.
Jose-Moreno commentedon Jul 28, 2018
@caryoscelus Ah that's unfortunate. I really had high hopes for this to be honest. As mentioned before been searching for an After Effects FOSS replacement for a long time and I thought Synfig was it after understanding its use cases.
The application certainly has its strengths but along this particular issue, there are just too many other things that can undermine productivity in a studio pipeline when using it, and sadly producers and artists in general will rather use what they know / are familiar with / is proven, than to spend in R&D for industry's sake.
I think my best bet right now still is to learn software development and C++ to help with these FOSS projects. When and how I suppose that remains to be seen. Thanks again for your sincere answer! 🙂
ice0 commentedon Jul 28, 2018
Hello, guys!
I assumed that from the outside it would look like this. But I did not think that it would look so bad :)
First of all. Project is not dead. And in active development.
Yes, at the moment there are not so many changes as we would like. But it should be so.
So now what is in the priority:
We have already discussed curves with Konstantin (@morevnaproject), but agreed that we will tolerate a little more and focus on the priority tasks.
We also publish a weekly report on our page at Patreon (https://www.patreon.com/synfig), where we write about the current status of the project.
Also a lot of research work goes beyond the Synfig codebase. Ivan (@blackwarthog) is working on optimization of hardware rendering and do almost daily commits in the repository (https://github.com/blackwarthog/lab/commits/master).
I'm working on improving UI codebase and experience. Also we are fixing all errors that leads to Synfig crash.
All of this is background work, and didn't adds new shiny features to Synfig, but it must be done before we move forward.
Jose-Moreno commentedon Jul 28, 2018
@ice0 Thank you for the information! Well I was a bit surprised about the "dead project" commentary but since it's not that unusual for these type of FOSS projects (and I'm new to the development side of Synfig) I didn't think to question it, so I thank you for taking the time to explain the current project focus as well as pointing out who is doing what during the stabilization period.
I truly agree that is critical to stabilize and bug-fix any program before getting into feature requests, particularly if those have complex implementations like this one.
With that said, I'll try my best to use and test Synfig thoroughly for different types of animation projects to see If at least is possible to contribute to it by improving the external "image" that other communities and artists might have of the project. I believe it's important to have professional content made with the software to gather enough attention from the outside, and while curve editing is important for an animator, it's not impossible to animate without it so i think we can hold on for a while 🙂
caryoscelus commentedon Jul 28, 2018
Well, this is certainly not the best place to argue about project status and plans, but the problem is that it seems there is no other public place for that anymore. Not mentioning any other delicate problems and observable history, i can base my opinion simply on being familiar with the code. Unless someone would use some intelligent automatic refactoring systems (i have no idea whether any existing ones would be intelligent enough), i consider that working with synfig code has no ultimate merit, compared even to rewriting it with the same set of features. That is, apart from making money and improving workflow for existing long-term projects.
But i can see that anyone who has freshly come to synfig can have different opinion. In the end, it is not impossible that after a few "generations" of people coming and going, one of those "generations" would make a breakthrough. Those who do code can judge that probability from code and for those who don't i'd recommend checking out the long synfig's history.
AnishGG commentedon Mar 8, 2019
Any updates on this issue? Is this gonna be standardized?
Also @caryoscelus you mentioned that a convertor can be made, can you elaborate on that? How would you convert the current interpolation methods into the bezier curve for value interpolation.
This will be handy in #704 , because lottie and adobe AE currently use bezier interpolation.
caryoscelus commentedon Mar 8, 2019
Well, any continuous real -> real function can be approximated with beziers. In fact, there is already some conversion like that implemented in synfig for freehand tool. Though of course it would be better to be able to preserve or at least control amount of key points.
AnishGG commentedon Mar 10, 2019
Hey @caryoscelus, thank you for writing back!
Could you please point me towards the right direction. I need to convert the current TCB values to ease-in and ease-out values in cubic curve for bezier(http://cubic-bezier.com). Even after lots of googling, I am not able to find some resource where I can read this.
Any help would be highly appreciated. ^_^
Thanks in advance!
caryoscelus commentedon Mar 10, 2019