GIFs, and JOGL

Hi guys, I’ve been recently messing with JOGL, and TextureIO for trying to make a game. I’m still at the very beginning of it, trying different things, but I still don’t know if it is possible to handle animated GIF for making sprites moves/walking/firing/attacking/whatever, or do we need to have all part of animation in different jpg files or else, and switch em manually every X frame?

A quick google gave me this answer:

[quote]No matter if you’re putting OpenGL or Direct3D to work you will have to go through the nasty stuff yourself, i.e. unpack the image data of the animated gif, load each frame, create a texture and use it to play the animation. Neither API is able to play animated gif’s.
[/quote]
…which is also what I’d expect as I’ve never seen anything like that before :slight_smile: There might be some kind of library for it but I wouldn’t know about one, sorry.

Mike

thanks for your anwser. I’ll see if I can find a lib that can deal with that. Or I’ll just work on loads of pictures somehow.

Slick 2D