[osg-users] Custom Graphics Context not applied?
Robert Osfield
robert.osfield at gmail.com
Tue Aug 30 04:36:31 PDT 2016
Hi Philipp,
It impossible for us to know what is going wrong given the details you
have provided.
I can't even answer whether the OSG is creating a graphics context
behind the scenes as there it's so open ended what you may or may not
be doing. If you don't provide an graphics context that osgViewer
will attempt to create one for you, perhaps this is happening.
However, as I've said, there isn't any way for us to know what is
going wrong, only you have the code and the ability to run your
application and debug it first hand.
Robert.
On 30 August 2016 at 11:21, Philipp Meyer <philipp.meyer at fh-bielefeld.de> wrote:
> Hi,
>
> I'm trying to create a custom graphics context to replace the default X11 Graphics context (I need to add some additional code).
>
> To do this, I created a new "CustomGraphicsContextX11" class, deriving from "PixelBufferX11". I reimplemented the virtual methods that I need to adjust.
>
> Then, I apply the custom graphics context to my master camera and start up the viewer.
>
> However, to my own surprise the swapBuffersImplementation() method of my custom context is never executed. Same goes for "realizeImplementation()".
>
> Is OSG still using another graphics context behind the scenes for some reason? The method described above worked fine for me on another system without the X11 windowing system.
>
> Thank you!
>
> Cheers,
> Philipp
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68483#68483
>
>
>
>
>
> _______________________________________________
> 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