Using env vars: set OSG_SCREEN=1 osgviewer cow.osg
Will open it up on screen 1. Using command line: osgviewer cow.osg --screen 1 In windowed mode: set OSG_WINDOW="100 100 500 500" osgviewer cow.osg osgviewer cow.osg --window 100 100 500 500 Or just use a osgViewer .view config file osgviewer cow.osg -c OpenSceneGaph-Data/Configuration/SmallWindow.view Or using a Producer .cfg (with 2.4.x) osgviewer cow.osg -c myconfig.cfg Or using env var: export OSG_CONFIG_FILE=OpenSceneGaph-Data/Configuration/SmallWindow.view osgviewer cow.osg Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of tien dat Sent: Monday, June 22, 2009 5:42 PM To: OpenSceneGraph Users; Robert Osfield Subject: [osg-users] How to set the resolution for an openscenegraph window Dear all, I need to run OpenSceneGraph on a hand-held device (a Viliv S5) and it has a integrated graphics card only. So I want to reduce the resolution of my application so that the frame rate can be higher (right now it renders images at 1024x600 and runs at 0.5 fps or less). Is there a way to tell viewer render pictures at a specified resolution (doesn't have to be full screen)? Thanks a lot, Dat ------------- Dat Tien Nguyen PhD student, Computer Science Department The University of Iowa, IA 52242 http://cs.uiowa.edu/~tinguyen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

