严重注意!!!以下设置必须在viewer.realize();之后,否则不起作用!!!!

 

设置相机的位置,可以通过CameraManipulator(一般是osgGA::TrackballManipulator)设置,

可以使用setTransformation设置

 

设置相机的其他参数,ViewMatrix,ProjectionMatrix,Viewport

osg::Camera* c=viewer.getCamera();

c.setViewMatrix....

c.setProjectionMatrix...

c.setViewport...

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-11-18
  • 2021-07-29
  • 2021-10-05
  • 2022-01-19
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案