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
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 to this:
while(
2 matches
Mail list logo