SFML community forums

Help => General => Topic started by: BaneTrapper on September 25, 2013, 09:32:41 pm

Title: Showing animated picture, how would i achieve that in sfml2.1
Post 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.
Title: Re: Showing animated picture, how would i achieve that in sfml2.1
Post by: Nexus on September 25, 2013, 09:35:00 pm
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).
Title: Re: Showing animated picture, how would i achieve that in sfml2.1
Post by: Lethn on September 26, 2013, 12:33:03 am
As Nexus said, use his library or pick one you prefer, you also need to do the same if you want to import 3D.
Title: Re: Showing animated picture, how would i achieve that in sfml2.1
Post by: BaneTrapper on September 26, 2013, 01:33:38 pm
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.