Hello Guy,
I have a stituation where the viewport is smaller than the windows, causing the region outside the viewport to not be cleared properly. Does anyone know how to clear the background window?
By viewport do you mean osg::View? And by window do you mean context? If so then just create another view that covers the whole context, set its camera's clear color to the color you want, the camera's render order to be before the other view's camera, and keep its scene data empty. It will just do a glClear of the whole context. You can then disable clear on the other view's camera to save a bit of time.
But if you mean you want to clear a Win32 window and your graphics context doesn't cover the whole window, then I wouldn't know. Sorry.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

