Hi Alvaro,

On 16 May 2013 23:04, Alvaro Fuentes <[email protected]> wrote:
> Hi everyone. I have a question regarding to video playback and the best way 
> to using it in a texture inside the 3d world of OSG.
>
> Is there a way to stream the video content (or video frames, produced by the 
> ffmpeg plugin) directly to the GPU memory? Is this approach the best, in 
> terms of performance?

The OSG by default uses PixelBufferObjects for downloading video data
efficiently to the GPU, all you have to do is do a
osgDB::readImage(..) to get the osg::ImageStream that you than assign
to a osg::Texture2D/TextureRectangle and then the OSG will do the rest
for you, you will not need to worry about making things efficient, by
default it'll be as efficient as you can make it ;-)

See the osgmovie example for how to set things up.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to