Discussion:
osg GIF plugin with animate GIF supported
Wang Rui
2008-05-16 16:46:39 UTC
Permalink
Hi all,

I have just done some changes on the classic osgdb_gif plugin. I wish our
developers may use the newly written GIF reading plugin to attach animate
GIF files as textures now! In my opinion, a GIF is much smaller than AVI and
MOVs, and much more efficient sometimes.

Changes includes:
1. A new GifImageStream class (inherit from osg::ImageStream) have
already been added to implement different operations of a GIF movie, such
like playing, pausing, rewinding, setting time and so on.
2. Some small changes to decode_row() and gif_read_stream(), which make the
transparency of GIF images correctly.
3. Just a few changes to the ReaderWriterGIF::readGIFStream() function,
which ensure that animate GIFs are loaded by GifImageStream (and the
function returns GifImageStream objects) and static GIFs unchanged (still
use the old method and returns osg::Image objects!).

All changes are commented with "2008.5.17". The plugin has been tested on
Windows. Thank you for criticizing and advices.
God bless people in Sichuan, China, who are suffering the earthquake...

Wang Rui
Jean-Sébastien Guay
2008-05-16 18:02:28 UTC
Permalink
Hello Wang Rui,
Post by Wang Rui
I have just done some changes on the classic osgdb_gif plugin. I wish
our developers may use the newly written GIF reading plugin to attach
animate GIF files as textures now!
This is a great change, but if it's a submission, please send it to
osg-submissions.

http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol

However, if this is a request for testing, it should have been clearly
stated in your message. Do you have example files we can test with?
(perhaps links to images on some web site)

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay-***@public.gmane.org
http://www.cm-labs.com/
http://whitestar02.webhop.org/
Wang Rui
2008-05-17 00:42:06 UTC
Permalink
The animate GIF file I tested with is attached. There are also many many
dynamic pictures on websites you could use.
I will try to send to the osg-submission soon after study the protocol. But
I'm not sure if it works for Unix and MacOSX. Could you and somebody else
help me test it?
Thank you for your great help.

Wang Rui
Post by Jean-Sébastien Guay
Hello Wang Rui,
I have just done some changes on the classic osgdb_gif plugin. I wish our
Post by Wang Rui
developers may use the newly written GIF reading plugin to attach animate
GIF files as textures now!
This is a great change, but if it's a submission, please send it to
osg-submissions.
http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol
However, if this is a request for testing, it should have been clearly
stated in your message. Do you have example files we can test with? (perhaps
links to images on some web site)
Thanks,
J-S
--
______________________________________________________
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...