Hi,

create an osg::Image (you don't need to allocate image data portion), point the Image at your own data. Create a Texture2D/TextureRect, call setImage on this with your osg::Image. When you get new data, call Image-dirty().

You can also set the image to use pixel buffer objects for upload.

->setPixelBufferObject(new osg::PixelBufferObject(Im))

jp

Veehmot wrote:
I'm trying to generate a streaming to get the frame of the webcam with OpenCV. 
I have checked out the mpeg plugin, but I can't see how I can change the data 
of a Texture2D from my code every frame.

Any link, tutorial, accepted.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=7032#7032





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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to