Hi,

I have some code that has to handle classic osgViewer::Viewer and 
embedded osgViewer::Viewer.

We have also a predraw, a postdraw and a hud slave camera.

I'm trying to have almost the same code path in the 2 modes (embedded or 
not).

For the moment, it looks like:

if (embedded)
{
   viewer.init();
   viewer.realize();
   createSlaveCameras();
}
else
{
   viewer.setUpViewAcrossAllScreens();
   createSlaveCameras();
   viewer.init();
   viewer.realize();
}

It's not so bad. It's just a few different lines but I don't understand 
why the
embedded code path doesn't work in the non embedded case (The slave 
camera are not
culled nor rendered).






_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to