It seems to be failing at the line imagestream -> play(); When you take that out, it works but doesn't play the movie and when you add that in, the program crashes at that line. Any suggestions? Thanks in advance
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, June 27, 2007 9:35 AM To: osg users Subject: Re: [osg-users] OSG moving textures 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/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
