HI Ed,

Others users have embedded the OSG into existing OpenGL applications
so it is possible.  It it isn't all straight forward, mainly due to
the issues of managing OpenGL state.

I'm hoping Paul Martz will volunteer his experiences, as he did just
this at his previous job ;-)

Robert.

On 11/9/06, Ed <[EMAIL PROTECTED]> wrote:
How difficult is it to integrate OSG code into an existing OpenGL
application?

Let's say I have an application which renders 2 different types of
scene.  The app reads in object data, material information etc. etc.
then enters a framing loop and calls the main Render function.
Something like this:

InitializeXWindowGLContextEtc()
InitializeObjects()
InitializeRest()
while (still need to render)
    RenderSceneA()

Or  maybe the app calls RenderSceneB()

while (still need to render)
    RenderSceneB()

I want to add my own Render function which uses OSG

while (still need to render)
    RenderSceneC_OSG()

Is this possible?  Difficult?  Are there examples?

Ed


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to