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

Author Topic: Showing animated picture, how would i achieve that in sfml2.1  (Read 1918 times)

0 Members and 1 Guest are viewing this topic.

BaneTrapper

  • Full Member
  • ***
  • Posts: 213
  • Do you even see this, i dont need it.
    • View Profile
    • Email
Showing animated picture, how would i achieve that in sfml2.1
« 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.
BaneTrapperDev@hotmail.com Programing, Coding
Projects: Not in development(unfinished/playable):
http://en.sfml-dev.org/forums/index.php?topic=11073.msg76266#msg76266
UP and in Development: The Wanderer - Lost in time
http://en.sfml-dev.org/forums/index.php?topic=14563.0

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Showing animated picture, how would i achieve that in sfml2.1
« Reply #1 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Lethn

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Re: Showing animated picture, how would i achieve that in sfml2.1
« Reply #2 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.

BaneTrapper

  • Full Member
  • ***
  • Posts: 213
  • Do you even see this, i dont need it.
    • View Profile
    • Email
Re: Showing animated picture, how would i achieve that in sfml2.1
« Reply #3 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.
Thank you on sharing that, i will see what i can pull out.
BaneTrapperDev@hotmail.com Programing, Coding
Projects: Not in development(unfinished/playable):
http://en.sfml-dev.org/forums/index.php?topic=11073.msg76266#msg76266
UP and in Development: The Wanderer - Lost in time
http://en.sfml-dev.org/forums/index.php?topic=14563.0