Hi Hartmut, There isn't presently a .osg support for automatically playing a video so you have to traverse the scene graph, find the texture which have an ImageStream assigned and then call play on them.
Robert. On Wed, Jul 15, 2009 at 1:08 PM, Hartmut Seichter<[email protected]> wrote: > > This might be an edge case for usage but I try to use a video as a texture > loaded from a .osg file (or any other fileformat if that matters). Fiddeling > around with a simple .osg file I get something like [1] - I get the first > frame - great but that's it. It does not run the video and I couldn't find > any reference in the plugins to deal with this case. Is this just not > supported or do I miss an environment variable etc. pp. - system is OSG > 2.8.x from the 2.8 branch on OS X (thus QuickTime plugin) > > Cheers, > Hartmut > > 1) > > textureUnit 0 { > GL_TEXTURE_2D ON > Texture2D { > file "/Users/seichter/Movies/bowling.avi" > wrap_s REPEAT > wrap_t REPEAT > wrap_r CLAMP > min_filter LINEAR_MIPMAP_LINEAR > mag_filter LINEAR > maxAnisotropy 1 > borderColor 0 0 0 0 > borderWidth 0 > useHardwareMipMapGeneration TRUE > unRefImageDataAfterApply TRUE > internalFormatMode USE_IMAGE_DATA_FORMAT > resizeNonPowerOfTwo TRUE > } > > > -- > > Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ > > _______________________________________________ > 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

