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

Author Topic: SFML 2.0 gif Encoding  (Read 3788 times)

0 Members and 1 Guest are viewing this topic.

floAr

  • Newbie
  • *
  • Posts: 9
    • View Profile
SFML 2.0 gif Encoding
« on: July 13, 2012, 01:35:16 pm »
Hey folks!
I´m working on an animation system for a small 2D game with sfml at the moment.
I build my objects on a pixel base, rather than loading them into the engine. I have nearly everything in place right now (You may exspect some screenshots next week) and I am building an editor to allow the users to build own items ingame.
What I want to do now is: Exporting the objects into an animated gif. As far as i know there is no native way in sfml to do this, but does anyone knows a c++ lib which may help me to accomplish this task quick and easy?
This is not a main feature, as i save my objects into my own format and just want to have the gif export to create some eye candy outside the game ;)

Best regards!
floAr

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML 2.0 gif Encoding
« Reply #1 on: July 13, 2012, 01:41:28 pm »
i think it will be better to pack frames in binary file (i suppose you want 1 file in result), rather than working with gif, or use spritesheet with xml/binary info about frames

floAr

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFML 2.0 gif Encoding
« Reply #2 on: July 13, 2012, 01:47:51 pm »
I do not plan to use the Gifs in my game. The objects for the game are coded into an xml like file.
I just want to make it possible to export an object to gif, to show it around and post in on websites :)
Because of this gif support is not killer feature for me and i dont want to invest much time into implementing it.
If there is no easy way the feature will be put to rest

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML 2.0 gif Encoding
« Reply #3 on: July 13, 2012, 01:51:58 pm »
check it : http://habrahabr.ru/post/52775/
use google translate if you can't understand russian

floAr

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFML 2.0 gif Encoding
« Reply #4 on: July 13, 2012, 02:04:58 pm »
Thank you, this looks quite good.
I will check it out when im back home, as i cant install cmake on this machine.