Hi Charlie,

Hi,
>
> I am looking a way to use the image grabbed from a webcam using OpenCV and
> then use that image as a texture in a osg app.
>
> Taking the osgmovie example, I already tried to create a subclass of the
> ImageStream class but Im a little lost trying to do it this way so far I
> already know how to convert an IplImage to an osg::Image and I'm able to
> take ONE image from the webcam this way, but now I have no idea in how to do
> update the image every 1/30 second to create the live stream.
>
>
You need to call the method "dirty()" whenever a new frame is grabbed to
tell osg to update the texture associated with the osg::image object.

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

Reply via email to