Thanks for the suggestion Jason. There are a few other questions that you might be able to help me with also.
But first, I should also mention that I am writing to an off screen pbuffer . I have attached an image to viewer's camera (viewer.getCamera()->attach(osg::camera::COLOR_BUFFER, imageBuffer). I then send a pointer to the image's data to another thread (the frame generation thread) which compresses it and adds it to a video stream. I'm using two image buffers so that when the frame generation thread is compressing the image we can write to the other buffer). It looks like sometimes we are accessing the imageBuffer before it is filled as I'm passing a black frame to the camera frame generation thread. When I call viewer.frame() is the rendering completed or is that kicking off another thread which does the rendering? If so, how do I know when the rendering has finished? Also, can you provide some information on the various threading models? If I use singlethreading, does the viewer spawn it's own thread or will it render in the existing thread (the one that makes the call to viewer.frame). Thanks again, -Vinay ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16165#16165 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

