From a little code digging, there doesn't appear to be a way to turn this off. ViewerBase::startThreading always adds a SwapBuffersOperation per render thread, and SwapBuffersOperation::operator() always calls swapBUffersImplementation and clear.

Maybe there's a way to delete that Operation and add your own.

Or you could derive your own GraphicsContext that allows you to make swapBuffersImplementation a no-op, I guess.

Or you could set up the Viewer embedded, in which case creating the context and swapping is up to you and no longer managed by osgViewer.

But I guess I'd wonder why you need to do this in the first place. If you need to partially render, then do some app code, then render some more before swapping, OSG has many facilities for this already. So can you explain why you think you need to render into the back buffer but not swap?
   -Paul


Gianluca Natale wrote:


Hi all.
I have an osg::viewer and its associated graphics context, that is a double buffered context.

I need to draw in the back buffer without swapping the back and front after rendering traversal.

How can I do that?

I cannot find a way to disable the swapping after drawing in osgViewer::Viewer and in osg::GraphicsContext.

Thanks in advance

Gianluca


------------------------------------------------------------------------

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

Reply via email to