Hi Jasper, It is possible to integration the OSG with an existing OpenGL context, see the osgviewerSDL and osgviewerGLUT examples use of GraphicsWindowEmbedded to do this.
If the 3rd party app is doing it's own OpenGL work then things get more complicated as you'll need to make sure the OpenGL state isn't carried over from the 3rd party code to the OSG and from the OSG to the 3rd party code. The later is a bit awkward to achieve but possible - others are doing it. Have a read through the archives on the topic for discussion how. Robert. On Wed, Aug 18, 2010 at 9:20 AM, Jesper D. Thomsen <j...@anybodytech.com> wrote: > Hi all, and thanks for your support so far. > > > > We are using OpenSceneGraph for creating model views for a muscular-skeletal > simulation software package, which has worked really well so far. > > We have had a number of inquiries if it would be possible to make this > modelview available to other external applications. In particular CAD and VR > systems. These systems may or may not be using OpenSceneGraph, and we are > wondering if it would be possible to offer integration of our OSG context > into an OpenGL system in some way. The most basic idea would be to just > export our OSG model tree to them, and thus force them to use OpenSceneGraph > in their systems, but for a number of CAD systems that would not be > feasible. We also thought of having our API being able to accept a handle to > an OpenGL context and using it for drawing the OSG content in. This would of > course not offer integration of our OSG-based modelview and their existing > OpenGL content in the same graphic window, but I don’t know if that easily > possible in any way at all. > > > > We are currently just discussing what would be possible, so if anyone has > any ideas as to what can be done to offer this kind of integration, we would > appreciate any thoughts about it. > > > > Regards, and thanks in advance > > > > Jesper D. Thomsen > > AnyBody Technology A/S > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org