Camera设置viewMatrix和projectionMatrix,使用setViewMatrix和setProjectionMatrix不管用,原因可能是:
If you are setting your own view matrix then do not register a camera manipulator with the viewer, and avoid calling viewer.run() as it’ll attach one automatically, so just use an expanded frame loop. i.e.
viewer.realize();
while(!viewer.done())
{
Viewer.getCamera->setViewMatrix(viewMatrix);
Viewer.getCamera->setProjectionMatrix(projectionMatrix);
Viewer.frame();
}