Hi, I have a question for the drawImplementation and osg::State gurus...
I have 2 SceneView, each attached to a render window, and their corresponding subrgaph share 1 drawable from which I have implemented a drawImplementation function. By getting setting the ContextId of the sceneview state, I can successfully share classic osg nodes, in order to get synchronized displays in both views. Now my pb is that I need to perform different operation into the drawImplementation function dependng which window/sceneview is currently drawn. How I achieve this? What information can I get from the osg::State argument of the drawImplementation? Should I use the contextId and so by consequence have all the information for decision inside the custom drawable? Or is there a way to "embbed" object into the State (by creating a new class?) Hope I have been clear...Thank in advance. Best Regards, Jerome Schmid --------------------------------------------- Jerome SCHMID Project Manager / Engineer Augmented and Virtual Reality Minimally Invasive Surgical Skills Center (MISS) http://www.hkmisc.org.hk/ Prince of Wales Hospital Chinese University Of Hong Kong ----------------------------------------------
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
