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

Robert Osfield robert.osfield at gmail.com
Wed Mar 25 07:25:05 PDT 2009

Hi Fred,

Just set the Camera's viewport so it only covers the part you want to render


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

> hello world,
> on a win32 project, I would like to display an osg Viewer in a part of
> the window.
> I set my osg::GraphicsContext::Traits with coords I want, set the
> inheritedWindowData with osgViewer::GraphicsWindowWin32::WindowData(
> hwnd )
> my model is well placed and displayed (in the area I wanted), but the
> entire window is filled with background color.
> Is there any way to avoid this? any suggestion ?
> thanks in advance
> Fred
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090325/aafe270c/attachment-0003.htm>

More information about the osg-users mailing list