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

Author Topic: 2D animation  (Read 1671 times)

0 Members and 1 Guest are viewing this topic.

MichelangeloSFML/

  • Newbie
  • *
  • Posts: 17
    • View Profile
2D animation
« on: July 24, 2022, 11:48:44 am »
Is it possible to shift & bend images in real-time with SFML, in order to create fluid animation? Something like this Photoshop tutorial, where triangles are placed on top of images & then you manipulate the image.

At time 3:00
https://youtu.be/kH2LP3Md6uE?t=180

Can you bend & shift a collection of sprite images that will make up a larger unit/character? Can you do it with triangles in SFML?

Paul

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Re: 2D animation
« Reply #1 on: July 30, 2022, 10:45:42 am »
That's way advanced, it's possible if you program entire backend including triangulation, IK.. :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: 2D animation
« Reply #2 on: August 02, 2022, 12:38:20 am »
If the shapes are separate or textured sprites, then you can apply some bending with a shader, but you won't be easily just bend certain parts of an image, because the first requires you to extract those "certain parts" from the overall image, which is not trivial.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything