Hi Raymond, Not all platforms/drivers support PBO, but if yours does then your in luck, PBO is very good for the purpose of stream imagery to the GPU.
The OSG has built in PBO support, and the osg::ImageStream by default will use them where available... except OSX where we had to disable as it was causing problems due to dodgy driver support. You don't have to do anything yourself as the OSG will use the PBO automtaically for you. For instance: osgmovie myvierw.mpg Will automatically use PBO, but note there is not a single line of PBO code in the osgmovie.cpp, as its not needed. There is a caveat, we don't yet have a movie plugin checked-in for Windows, so the above will only work under Linux via the xine-lib plugin. The above will work under OSX too thanks to the Quicktime plugin, but without PBO... Robert. On 7/31/06, Raymond <[EMAIL PROTECTED]> wrote:
Hi, I have started an application that should be able to receive a number of video streams to use as textures. Looking for the best way to use video streams in osg, I could only find the announcement "Also to facilate high resolution video streaming, OpenGL Pixel Buffer Objects are now supported." in the release notes. Could someone please point me at an example (code snippet is fine) how to do this in the most efficient way (in terms of performance)? I have written a streaming application in pure OpenGL so now I would like to switch to osg. thanks a lot best regards Raymond de Vries TNO, The Netherlands _______________________________________________ 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/
