Hi,
I use 4 screens (running on two nvidia cards).
When I don't precompile the gl objects things look as expected. But when I
precompile stuff, things are shown only on some graphic contexts.
1. I am loading models on my own background thread.
2. This is what I do on the "main" thread, before the update traversal:
osgUtil::GLObjectsVisitor glov;
glov.setNodeMaskOverride(0xffffffff);
osgViewer::Viewer::Contexts graphicContexts;
myViewer->getContexts(graphicContexts);
for (osgViewer::Viewer::Contexts::iterator it =
graphicContexts.begin();
it != graphicContexts.end();
++it)
{
glov.setState((*it)->getState());
glov.apply(*loadedNode);
}
Finally I add "loadedNode" to the scenegraph.
Is this the wrong approach?
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org