Hi Viney, I'm not surprised setting the viewport to 0,0 size will cause problems, it's certainly not the way to disable rendering.
If you want to disable rendering then just set the node mask on the view's master camera to 0 and it won't be rendered. Robert. On Wed, Jul 15, 2009 at 11:56 PM, Vinay Shah<[email protected]> wrote: > Hi, > > Thanks for the response. I originally wanted to use the older version of osg > because that's what is currently being used on the project I am working on. > However, I have since upgraded to 2.8.2. > > I am now able to draw into a frame buffer and then get the frame data into > memory by using the following commands: > > > Code: > > > viewer.getCamera()->setRendertargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); > viewer.getCamera()->attach(osg::Camera::COLOR_BUFFER, image); > > > > > > Now I'm having a problem that even though I'm writing to a frame buffer, the > viewer still wants to draw something to the screen. When I run my code it > blacks out the entire screen. I tried using > > > Code: > > viewer.setupViewInWindow(0,0,0,0,0); > > > > > which eliminates the problem of blacking out the entire screen, but this > results in an OpenGL error. Does anybody know the proper way of disabling > drawing to the screen for the viewer? > > Thank you! > > Cheers, > Vinay > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=15000#15000 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

