HI Sashidhar, On Dec 16, 2007 7:04 AM, Sashidhar Guntury <[EMAIL PROTECTED]> wrote: > We have written an app in terms of modules where all the modules > except one use a normal viewer. One module uses Composite Viewer. Now the > problem is while the program is running, is it possible to switch over from > Normal Viewer to Composite Viewer and vice versa? I mean, is it possible, > (by pressing a key) to switch from Normal Viewer to Composite Viewer?
You could if you want, but there is huge scope for managing different views/viewers so its without more info one can't really say whether what you want to do is the best way to tackle it. Viewer and CompositeViewer are very simila in many ways - in 2.2 they even share most of the viewer code via a ViewerBase class. As for stopping a viewer/composite view you simply exit the frameloop and call stopThreading() on the viewer. If you are using the run() method to wrap up the frame loop then just set the viewer's done flag to true and the run() method will exit. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

