Hi Srinivas, What you need to do is create a viewer with a PixelBuffer (also called pbuffer) as the GraphicsContext rather than a GraphicsWindow. There are several OSG examples that set up pbuffer graphics context.
Robert. On 24 April 2018 at 12:40, Srinivas Prabhu <[email protected]> wrote: > Hi, > > We create an osg::Texture2D based on the PNG file that we read. How do we > create a graphics context on that texture memory so that we can render into > that memory and then re-save the PNG later. > All this has to be implemented without opening a graphics window. > > Is it possible to do this in osg? If yes please point me towards some > links/documentation if available as i have not found anything helpful in the > osg forum/google yet. > > Thanks in Advance! > > Cheers, > Srinivas > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=73494#73494 > > > > > > _______________________________________________ > 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

