[osg-users] How do I create a graphics context on a texture memory?

Robert Osfield robert.osfield at gmail.com
Tue Apr 24 07:23:43 PDT 2018


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 <srinivas at bloomce.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list