Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 2D skeletal animation with SFML?  (Read 144 times)

0 Members and 1 Guest are viewing this topic.

JonathanCR

  • Newbie
  • *
  • Posts: 7
    • View Profile
2D skeletal animation with SFML?
« 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!

JonathanCR

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: 2D skeletal animation with SFML?
« Reply #1 on: September 09, 2020, 08:37:48 pm »
Well, I've found this - https://github.com/mjjq/InverseKinematicsLibrary - haven't tried it yet though!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9592
    • View Profile
    • development blog
    • Email
Re: 2D skeletal animation with SFML?
« Reply #2 on: September 16, 2020, 07:53:42 am »
You could use Spine for your animations. They already provide a runtime for SFML.
There are also alternatives like Spriter with a generic C++ API.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything