Hello! Could someone add support for the DISPLAY variable and some command line switch to set the display? Pretty please with a cherry on top! :)
I tried looking at the source code for osg::GraphicsContext as well as the osgViewer::View/Viewer code, but my C++ and understand of OSG finer detail is not good enough at the moment. (working on it!) It'd be great to have this as a fix for the 2.2 release, it's no hurry though. Meanwhile, how does one use osg::GraphicsContext to set the display? All I see is the getDisplay method and I can't find anything named "display" in Traits. I'm clueless. /Peter On 2007-08-02 (Thu) 12:40, Robert Osfield wrote: > Hi Rich, > > You can set the display number programatically via > GraphicsContext::Traits right now, but as yet I haven't added support > into osgViewer for automatically reading the DISPLAY variable. > > Robert. > > On 8/2/07, Rich Walker <[EMAIL PROTECTED]> wrote: > > > > Probably a stupid question, but I can't find an answer anywhere obvious. > > > > I have a machine running two X servers - :0 is 16bpp and :1 is 24bpp. I > > want to run an OSG example on :1 > > > > With X environment variable > > DISPLAY=:1.0 > > all the OSG examples display on :0, even if run from an xterm in :1. > > > > Any ideas? > > > > cheers, Rich. > > > > -- > > rich walker | Shadow Robot Company | [EMAIL PROTECTED] > > technical director 251 Liverpool Road | > > need a Hand? London N1 1LX | +UK 20 7700 2487 > > www.shadowrobot.com/hand/overview.shtml > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

