Hi Paul,

You'll need to flip the texture coordinates on the geometry it's assigned
to, or use the texture matrix, see osg::TexMat that wraps glTexMat.

Robert.

On 2 March 2015 at 06:21, Paul <[email protected]> wrote:

> Using the ReaderWriterGIF.cpp plugin, I'm able to load and play animated
> GIF images. However, I need to flip the images vertically. I can only flip
> the first frame.
>
>
>
> Code:
> osg::ref_ptr<osg::Image> img = osgDB::readImageFile("image.gif");
> osg::ImageStream* imagestream = dynamic_cast<osg::ImageStream*>(img.get());
>
> imagestream->flipVertical(); //ONLY FLIPS THE FIRST FRAME
> imagestream->play();
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62890#62890
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to