Re: [osg-users] Turning off main osgViewer camera

2009-08-12 Thread jake chambers
Hi, Thanks for the replies. Brian: when I set the nodemask on the main camera to zero it no longer renders, which is good, but the FBO no longer gets rendered (I get a totally black image in the associated osg::Image). JP: If I just insert my FBO into the scene (as POST_RENDER) two things

Re: [osg-users] Turning off main osgViewer camera

2009-08-12 Thread J.P. Delport
Hi, jake chambers wrote: Hi, Thanks for the replies. Brian: when I set the nodemask on the main camera to zero it no longer renders, which is good, but the FBO no longer gets rendered (I get a totally black image in the associated osg::Image). JP: If I just insert my FBO into the scene

[osg-users] Turning off main osgViewer camera

2009-08-11 Thread jake chambers
Hi, I have an application where I setup a normal osgViewer view with setUpViewOnSingleScreen(). This works fine. I also create an FBO camera to which I add my scene. When I want to take a screenshot of the application I call osgviewer-setSceneData(myFBOCamera) and render via

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread J.P. Delport
Hi, have a look at the osgautocapture example. Set the main camera to render offscreen, pbuffer. jp jake chambers wrote: Hi, I have an application where I setup a normal osgViewer view with setUpViewOnSingleScreen(). This works fine. I also create an FBO camera to which I add my scene.

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread J.P. Delport
Hi, sorry I might have answered too fast. What do you want the main camera to render when you are taking screenshots? What is it rendering when when you only attach the FBO camera? AFAIK you still need to call viewer frame() to trigger the FBO, but you can make the main camera just render

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread Brian R Hill
@lists.openscenegraph.org From: J.P. Delport jpdelp...@csir.co.za Sent by: osg-users-boun...@lists.openscenegraph.org Date: 08/11/2009 10:15AM Subject: Re: [osg-users] Turning off main osgViewer camera Hi, sorry I might have answered too fast. What do you want the main camera to render when you