Re: [osg-users] osg::Camera::setClearColor and glClearColor call

2009-12-09 Thread Harold Comere
Hi Robert, Thank you for your reply. I have already thought to do the screenshot using FBO with another camera to not disturb the main view but sadly, at the moment, i have a piece of code to improve but no time to do some refactoring. The current algorithm just place the main camera where we wan

Re: [osg-users] osg::Camera::setClearColor and glClearColor call

2009-12-09 Thread Robert Osfield
Hi Harald, I you want to change the background colour for a screenshot I'd be inclined to use a pbuffer and totally separate Camera for the task and just switch it on using a NodeMask, this way the main window won't be affected by playing games withe background colour. Robert. On Wed, Dec 9, 200

[osg-users] osg::Camera::setClearColor and glClearColor call

2009-12-09 Thread Harold Comere
Hi all, For screenshot and printing purpose, i am trying to change the background color before the render pass and screenshot writing. When i want to take a screenshot, i try to change the clear color with camera->setClearColor(xxx) and set a flag at true to activate the screenshot as camera fina