SFML community forums

General => SFML projects => Topic started by: Chet on May 15, 2018, 05:50:45 am

Title: Animation Creation, Editing, and Playback LIbrary
Post by: Chet on May 15, 2018, 05:50:45 am
A couple years ago I created a quick proof of concept to different aspects of putting together a package to handle key frame based animations much like you can do with tools like After Effects and HitFilm. It has basic support for assets, footage, layers, and compositions along with linear, Bezier, ellipse, and spline (incomplete) path interpolation.

The code is fairly rudimentary and a bit incomplete but I figured someone else might find it useful. Since it was created as a PoC there are quite a few things that could be done a lot more effectively if some time was spent sanitizing it a bit more. Iv'e attached a snapshot of the source in case anyone is interested.

Sample playback:


https://youtu.be/D7Sd2c1ZHIY

Some general details.

Project files are for VS2017.
Built and tested on SFML 2.4.2 (should work on 2.5)
SFML library should be dropped into externals/SFML or change the solution macro SFMLDir to point to the location containing your copy of SFML.
Build with modern C++.
Includes test/examples.
Intended more for authoring content. Playback in games would be handled a bit more efficiently.
Modeled after concepts common in applications in HitFilm and Adobe After Effects.
Includes bugs so there's no need to buy your own.


Emjoy!


I'll push this to GitHub when I get some free time.
Title: Re: Animation Creation, Editing, and Playback LIbrary
Post by: eXpl0it3r on May 15, 2018, 07:55:56 am
Nicly done! :)

You only show tge scene itself in the video, what does the "editor" look like?
Title: Re: Animation Creation, Editing, and Playback LIbrary
Post by: Chet on May 15, 2018, 08:11:48 am

You only show tge scene itself in the video, what does the "editor" look like?

Thanks! There is no editor. During the development of the PoC I switched to using HitFilm Express for authoring. The XML was imported into another tool and animations were produced in the PoC as well as other libraries I was working on. Everything in the video was done programatically and the code is included in the snapshot.

I'm hoping to find the import code I wrote for it so I can throw it in there was well.
Title: Re: Animation Creation, Editing, and Playback LIbrary
Post by: Chet on June 03, 2018, 09:02:08 pm
I found some time to make a few updates...


I'm going to clean up the code this afternoon and push it to github along with some additional videos to YouTube.