Hi Robert, Thanks for your quick response! (I just recently started using osg and I must say that I impressed how good your (and other too of course) support is!)
> 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. Yes, correct. I will turn it around: I would take care that I do have a graphics card that supports it (and my current gfx card does so already). > 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. Yes, I've seen that, the pbo 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... I've seen this too, also that xine is only done on linux. And right now I am on windows. I actually forgot to explicitly mention that I will work on receiving image streams from a network, so not from file. So my question was not so much how to use the pbo, but how to handle image streams from a socket. I have found the osgAVI plugin which does the locking of threads, etc. I think I will take this as a start, and put my socket code in there to receive our image stream. Is this osgAVI plugin a good (best?) place to start, or should I take another plugin as example? Thanks Raymond > > 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/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
