I'm trying to get an animated GIF to work on the iPhone I searched on Google, something from this blog Useful info was found ...
Animation that I try to play is not with the simple flipbook style, so I decided to give Open and GifLib tried a code from i Caught on
It works well with gif without transparent background, but the My gif files from Agy are with the transparent background. I'm new to OpenGL, I tried to add some scenes to PlayerView.mm within the PlayView function. Something like this ..
Globe (GL_BLEND); GlBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, GL_MODULATE);
glClearColor (0.0f, 0.0f, 0.0f, 0.0f); GlClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
But still could not remove white background ... I'm looking for ways to play animated GIF with transparent background, any help or hints would be greatly appreciated. thanks for your cooperation! :)
glgif now supports transparent BG GIF.
Comments
Post a Comment