Hi Gordon, > Running some tests with osgviewer I noticed it always comes up full > screen, any way on the command line to make it come up windowed ? > did not see an option with --help
Others have suggested OSG_WINDOW, but you can also pass --window x y w h on the command line. Most of the time when testing I will add -- window 50 50 1024 768 so I get a nice window instead of fullscreen. > Also when we come out of full screen with osgViewer we get multiple > windows, we all work with multi-headed PC's, any way to make it single > windowed as the multi-windowed version annoying for us ;), its not > critical as I only use the viewer for some comparison tests You can use OSG_SCREEN x for a single fullscreen viewer on screen x, or if you're using osgViewer::Viewer you can call setUpViewOnSingleScreen(x) to get the same effect, as Paul said. Note that currently, on Vista, when using that method (or OSG_SCREEN), you will get the fullscreen view on screen x, and your other screen(s) will be black. This is a bug resulting from the new Vista driver model, which should be fixed. I'm just waiting to get a bit of time from our tight deadlines to help fix it. On XP it works properly (there is a fullscreen viewer on screen x and nothing on the other screen(s), i.e. you see your other windows and the screen(s) don't turn black). So to summarize: osgviewer with no command line arguments and no env variables is the same as osgViewer::View::setUpViewAcrossAllScreens(). osgviewer with either OSG_WINDOW x y w h in the environment or --window x y w h on the command line is the same as osgViewer::View::setUpViewInWindow(screen, x, y, w, h) where screen will be 0 by default or OSG_SCREEN if set. osgviewer with OSG_SCREEN x in the environment (there should probably be a command line argument for this too) is the same as osgViewer::View::setUpViewOnSingleScreen(x). So if you ever want to do custom window setups for your app, looking at the source of the above methods is a great help. Also note that if you're using osgViewer::CompositeViewer, when you create a new osgViewer::View to add to it you can still call these methods as quick shortcuts to get some standard window setup. It's a good design! A little plug for Paul's book: while typing this up, I was looking up the env vars in the OSG Reference Manual v2.2 :-) Hope this helps, J-S -- ______________________________________________________ Jean-Sébastien Guay [EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org