Hi Lucus, With osgviewer your can do:
osgviewer --screen 0 cow.osg osgviewer -screen 0 --window 100 100 600 600 cow.osg Or us env var OSG_SCREEN set to 0 OSG_WINDOW set to "100 100 600 600" With the windows appearing in the wrong order, this will be down to your screen 0 being on the right and screen 1 being on the left, while osgViewer assumes 0 is on the left, 1 is on the right. You might be able to reassign things in your desktop to fix this. Programmatically you can also specify where you want the viewer to open up windows by setting the graphics context traits directly as in the osgwindow or osgcamera example, or using the View methods: /** Convinience method for creating slave Cameras and associated GraphicsWindows across all screens.*/ void setUpViewAcrossAllScreens(); /** Convinience method for a single Camara on a single window.*/ void setUpViewInWindow(int x, int y, int width, int height, unsigned int screenNum=0); /** Convinience method for a single Camara associated with a single full screen GraphicsWindow.*/ void setUpViewOnSingleScreen(unsigned int screenNum=0); Robert. On 7/6/07, wsacul <[EMAIL PROTECTED]> wrote:
Can anyone tell what code I would need to add into osgviewer.cpp so that it starts up with a single window on a single monitor in windowed mode? Currently I'm using Cygwin, when osgviewer starts it is in fullscreen across two monitors (and also gets backwards which is left and right), and when I minimize it minimizes it to two windowed views- I think I've seen discussion of this previously, but I can't find the right search terms to dig that up. Thanks, Lucas _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/