Summary
This chapter is mainly about the observation and transformation of the 3D world with the help of the osg::Camera
class. In this chapter, we also introduced how to use the osgViewer::Viewer
and osgViewer::CompositeViewer
, which encapsulate the cameras, manipulators, and stereo supports in order to make them work together.
In this chapter, we specially covered:
- How to set the view point, the view, and the projection matrix of a camera node, and how to define the rendering order of cameras, by using
osg::Camera
- Realization of the single viewer and composite viewer by using
osgViewer::Viewer
andosgViewer::compositeViewer
- The management of global display settings as well as the population of stereo visualization by using
osg::DisplaySettings
Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.