Hi Dieter, Try setting the OSG_SCREEN_HEIGHT, OSG_SCREEN_WIDTH, and OSG_SCREEN_DISTANCE env vars to the physical dimensions you have. See osg::DisplaySettings for setting it programatically. These values are used to calibrate the fov by osgViewer.
Robert. On Wed, Feb 27, 2008 at 4:16 PM, Dieter Pfeffer <[EMAIL PROTECTED]> wrote: > > Thanks Robert, > > but I wonder how the viewer should know that it is visualised on a 16:9 > screen and the pixel are stretched. > > I have tested it and the cube is stretched. > > - but I have found a solution for me, when I change the aspectRatio, it > looks correct. > > I have attached the result - the blue image is made with osgviewer -- it > looks correct on a 4:3 or 5:4 but it is stretched on a 16:9 screen > the black one has another aspectRatio and looks ok on the 16:9 but wrong on > a 4:3 or 5:4 > > > Robert, could you give me a hint concerning the differences (shown in the > images attached in my earlier mail) - both should have a fov of 60 degrees - > > > Dieter > > > > > Unclassified Mail > > > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Robert > Osfield > Sent: Wednesday, 27 February, 2008 14:25 > To: OpenSceneGraph Users > Subject: Re: [osg-users] multichannel question > > > Hi Dieter, > > The View::setUpViewAcrossAllScreens() is set up to detect all the > screens and open up windows with the appropriate projection and view > matrices for a power wall. By default osgviewer should use this > option. Have you tried this on your system? It'd be interest to here > how this works out. In theory: > > osgviewer mymodel.osg > > Should just work on your system right out of the box with no need for mods. > > Robert. > > On Wed, Feb 27, 2008 at 1:07 PM, Dieter Pfeffer > <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > > > could s.o. please give me a hint - > > what the best configuration is for a 3 channel visualisation with a > > resolution of 3x1024 x768 on three 16:9 screens (one large wall), > > so that I don't have distortion. > > > > I am testing with a cube with one large channel and with 3 adjacent > channel > > - > > > > > > I have attached two images > > > > image_1ch - one large schannel with 60 fov and an aspectRatio of 4: > > > > camera->setProjectionMatrixAsPerspective(fovH, aspectRatio, 1.0, > 1000000.0); > > > > > > image_3ch - three channel with each 20 deg and an aspectRatio of 1.333 > > > > adj_view->addSlave(camera.get(), osg::Matrixd::translate(2.,0.0,0.0), > > osg::Matrixd()); > > camera->setProjectionMatrixAsPerspective( fovH, aspectRatio, 1.0, > > 1000000.0); > > adj_view->addSlave(camera.get(), osg::Matrixd::translate(2.,0.0,0.0), > > osg::Matrixd()); > > > > I would expect that both configurations have nearly the same output, but > you > > can see the difference. > > > > What is my fault? > > > > > > Thanks > > > > Dieter > > > > > > > > > > > > > > > > > > Unclassified Mail > > > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org