SFML community forums
Help => General => Topic started by: BaneTrapper on September 25, 2013, 09:32:41 pm
-
Hello.
What i am trying is to show animated scene in .gif format.
What is a way to achieve animation in sfml?
In simpler saying: What is a way to display animated picture, gif or similar.
-
What i am trying is to show animated scene in .gif format.
You can't load animated file formats with SFML and maintain all the frames.
What is a way to achieve animation in sfml?
You use a sprite of which you change the texture rect over time. My Thor library also provides predefined functionality for animations (http://www.bromeon.ch/libraries/thor/v2.0/doc/group___animation.html).
-
As Nexus said, use his library or pick one you prefer, you also need to do the same if you want to import 3D.
-
What i am trying is to show animated scene in .gif format.
You can't load animated file formats with SFML and maintain all the frames.
What is a way to achieve animation in sfml?
You use a sprite of which you change the texture rect over time. My Thor library also provides predefined functionality for animations (http://www.bromeon.ch/libraries/thor/v2.0/doc/group___animation.html).
Thank you on sharing that, i will see what i can pull out.