level 1
已知相机的内参,利用三维点和对应的二维点求出外参矩阵,后来转化为了opengl中投影矩阵(projMatrix)和视图矩阵(modelViewMatrix),那么我该怎样在osg中使用这个矩阵呢?
在osg中已经人工转置两个矩阵,设置如下:
viewer->getCamera()->setViewMatrix(modelViewMatrix);
viewer->getCamera()->setProjectionMatrix(projMatrix);
并未用viewer.run();
2016年02月16日 09点02分
1