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( !viewer.done()) {
    viewer.frame();
}

Based on what you said you are trying to do, the two lines I removed just don't make sense, so I don't know why you have them there.
   -Paul

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to