Hi Oliver, Juan provides an example of how to do it, but doesn't specifically say how it works - the key is creating a pbuffer graphics context to assign to the viewer so it can use this for render. A pbuffer is an off screen Pixel Buffer that can be used in place of a conventional on screen window.
Robert. On Tue, Nov 30, 2010 at 10:25 AM, Oliver Neumann <[email protected]> wrote: > Hi, > > I'm trying to render scenes into a buffer (e.g. an osg::Image). There are > multiple demos and examples about this (e.g. example_osgscreencapture) but > they all require some sort of visible viewer to work. I'd like a console > application that does not display any windows. > > Is there a class/working example that allows this? > > I tried the osgViewer::setUpViewerAsEmbeddedInWindow method but calling > viewer.frame() produces many errors. It seems as OpenGL is not initialized > here at all. > > Thank you! > > Cheers, > Oliver > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=34250#34250 > > > > > > _______________________________________________ > 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

