SFML community forums
General => General discussions => Topic started by: JonathanCR on September 07, 2020, 08:47:03 pm
-
Hello everyone,
The title speaks for itself really. I'm interested in incorporating skeletal animation with sprites into my project. I don't mean displaying animations that I've created in animation tools such as Spine, I mean making the animation in the code itself - creating bones, linking them to each other and to sprites, moving them, and so on.
Does any library exist for doing this, in a way that's compatible with SFML? Perhaps trying to write one myself would be an option, but for three things:
(1) I really don't want to spend ages reinventing the wheel, especially when this isn't the main focus of what I'm interested in.
(2) I'm not really a very good coder and probably don't have the skill.
(3) I would really like to use IK chains, and I *definitely* don't have the skill to program those!
Any ideas? I'd be grateful for any pointers!
-
Well, I've found this - https://github.com/mjjq/InverseKinematicsLibrary - haven't tried it yet though!
-
You could use Spine (http://esotericsoftware.com/) for your animations. They already provide a runtime for SFML (https://github.com/EsotericSoftware/spine-runtimes/tree/3.8/spine-sfml).
There are also alternatives like Spriter (https://brashmonkey.com/download-spriter-pro/) with a generic C++ API (https://brashmonkey.com/forum/index.php?/topic/4464-spriterplusplus-a-c-spriter-implementation/).