Re: [osg-users] Viewports and actions on window resize

2008-10-18 Thread Robert Osfield
On Sat, Oct 18, 2008 at 9:51 AM, Alexander Löffler <[EMAIL PROTECTED]> wrote: > The call to setClearMask() was the crucial point, as I assumed the > GL_COLOR_BUFFER_BIT to be set by default. Which the Doxygen comment for the > method, as pasted above, suggests for me too. After setting this, everyt

Re: [osg-users] Viewports and actions on window resize

2008-10-18 Thread Alexander Löffler
Robert Osfield wrote: On Fri, Oct 17, 2008 at 9:29 AM, Alexander Löffler <[EMAIL PROTECTED]> wrote: For that matter, I have implemented an updateViewport() method that resizes my Viewport centered in the correct aspect ratio and according to my current window size. This works in general, but two

Re: [osg-users] Viewports and actions on window resize

2008-10-17 Thread Robert Osfield
Hi Alex, On Fri, Oct 17, 2008 at 9:29 AM, Alexander Löffler <[EMAIL PROTECTED]> wrote: > For that matter, I have implemented an updateViewport() method that resizes my > Viewport centered in the correct aspect ratio and according to my current > window > size. This works in general, but two quest

[osg-users] Viewports and actions on window resize

2008-10-17 Thread Alexander Löffler
Hi, I would like to use an osgViewer::Viewer which should render to a constant aspect ratio and fill the rest of any rendering window with black in any case; also on resizing. For that matter, I have implemented an updateViewport() method that resizes my Viewport centered in the correct aspect ra