简体   繁体   中英

Flash like Animation ONLY Library for C/C++ (no GUI)

I'm looking for an opensource C/C++ library for managing keyframe or time based animation.

I already have a graphic layer, so it doesn't need to do any drawing, I just want it to manage tweening or interpolation very much like Flash does, specifically:

  • Allows multiple objects to be managed in an overall scene or stage.
  • Allows me to string together a series of tweens and it figures out the active tween
  • Allows me to jump to any frame for my scene, and it tweens or interpolates the values for all objects in the scene.
  • Has variable frame rates for playback. eg frame_rate = 1 would play at 1 frame/sec.
  • And a total nice to have would be if the stage object could save and load it's state ;-)

I've seen lots of stuff out there for managing a single tween or interpolation, but nothing that seems to wrap up the higher level concepts of running a series of tweens end to end, and coordinating that with the concept of an overall timeline, much like Flash does.

Have you looked at the gameswf library? It is open-source and public domain so you can do whatever you want with it. But that is only if you are willing to use SWF as the container of your animation.

Also gameswf does not depends on flash and is programmed in C++. It can be compiled under Windows, MacOSX and Linux.

GAMESWF website link

Edit:

I will also add the Vektrix library. It is licensed under MIT so again completely free and open-source, is GPU-accelerated and well coded and maintained compared to gameswf. However, the rendering frontend for now is only OGRE3D. But i believe it is made to support others as well.

Vektrix website

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM