A: You can use OSG with or with out Producer, even if you are creating your own windows. See the osgsimple example for an example of using OSG with a generic windowing environment. OSG itself is windowing system agnostic, so setting up the window and
OpenGL
? graphics context will be up to your application. osgsimple uses Producer, but is written in a way to provide you the skeleton to use your own windowing system.
Alternatively, you can use Producer in your own windowing environment as well by setting each Camera's
RenderSurface
? to the window you've created. Like this:
The variable 'myWindow' is an X11 Window, or a win32 HWND.
See :
http://osgcvs.no-ip.org/osgarchiver/archives/November2004/1019.html for even more details.
...top
osgProducer::Viewer viewer;
viewer.getCamera(0)->getRenderSurface()->setWindow( myWindow );
...top