You need to call play on the imagestream, from osgmovie:


           osg::Image* image = osgDB::readImageFile(arguments[i]);
           osg::ImageStream* imagestream =
dynamic_cast<osg::ImageStream*>(image);
           if (imagestream) imagestream->play();


On 6/27/07, Alfero, Kristin <[EMAIL PROTECTED]> wrote:




Hello there,



I am trying to add a movie clip to a polygon in my database. I used osgmovie
to add the movie clip to a polygon, but I cannot seem to get work outside of
that program. I read somewhere to change the texture material description in
the .osg file (which I obtained by using osgconv), using this code:

            textureUnit 0 {

                 GL_TEXTURE_RECTANGLE ON

                 TextureRectangle{

                      file "somefile.avi"

                      min_filter LINEAR

                      mag_filter LINEAR

                  }

               }



But, it is just appearing as a black polygon, I cannot seem to get the movie
to play. Any ideas?



Thanks


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to