Hi Paul,

The osgWidget NodeKit is just for placing gui elements into the scene
graph so that they can be part of the 3D graphics window, it's not for
creating the windows.  osgViewer is the library that creates graphics
windows and manages the viewer.

For examples of how to create windows see osgwindows and osgcamera
examples that illustrate how to set up the windows in a fine grained
way.  There are also convenience functions in osgViewer::View for
setting up graphics windows and cameras that allow you to create a
window in a single line of code, osgViewer::Viewer subclasses from
View so you get all this functionality in the standard viewer.

osgViewer::Viewer viewer;
viewer.setUpViewInWindow(100,100,600,500); // create window
viewer.setSceneData(osgDB::readNodeFile("cow.osg"));
viewer.run();
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to