Re: [osg-users] problem with ortho2D viewport

2009-08-28 Thread Paul Martz
ximo o + wrote:     while(!viewer.done()) {         viewer.getCamera()->setViewMatrix(osg::Matrix::identity());         viewer.getCamera()->setViewMatrixAsLookAt(osg::Vec3(0, 0, -10), osg::Vec3(0, 0, 0), osg::Vec3(0, 1, 0));         viewer.frame();     } Hi -- Try changing your main loop

[osg-users] problem with ortho2D viewport

2009-08-28 Thread ximo o +
Hello I'm trying to build a 2D scene with orthographic projection. My problem is that each time I execute the program, the viewport seems to be different. I mean each time the quad has different size in the screen. I'va always used the default viewer before and touching cameras and v