[osg-users] background color fills all the window (not only the given viewport)
robert.osfield at gmail.com
Wed Mar 25 07:25:05 PDT 2009
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
> osg-users mailing list
> osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users