[osg-users] background color fills all the window (not only the given viewport)

Robert Osfield robert.osfield at gmail.com
Wed Mar 25 08:12:40 PDT 2009


On Wed, Mar 25, 2009 at 3:03 PM, Frederic Marmond <fmarmond at gmail.com>wrote:

> hum, it didn't work :(
>
> both
> //      gc->setClearColor( osg::Vec4f(1.2f, 0.2f, 0.6f, 1.0f) );
> //      gc->setClearMask( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
> and
>         gc->setClearColor( osg::Vec4f(1.2f, 0.2f, 0.6f, 1.0f) );
>         gc->setClearMask( 0 );
>
> do the same: instead of the shiny pink color, the window is filled with
> black
>
> any other suggestion ?
>

Well you disable the clear colour in the camera's ClearMask so perhaps this
is why it's just black.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090325/af766286/attachment-0003.htm>


More information about the osg-users mailing list