-
Book Overview & Buying
-
Table Of Contents
OpenSceneGraph 3.0: Beginner's Guide
This chapters taught how to implement a typical scene graph by using OSG, which shows the usage of various types of scene graph nodes, with a special focus on the assembly of the graph tree and how to add state objects like the commonly used osg::Transform, osg::Switch, osg::LOD, and osg::ProxyNode classes. We specifically covered:
How to utilize various osg::Group and osg::Geode nodes to assemble a basic hierarchy graph and handle parent and children nodes
How to realize the spatial transform by using osg::Transform, based on the understanding of the concept of matrix and its implementation—the osg::Matrix variables
How to use the osg::Switch node to shift the rendering status of scene nodes
How to decide upon the detail of rendering complexity for scene nodes, by using the osg::LOD class
Using the osg::ProxyNode and osg::PagedLOD classes to balance the runtime scene load
How to customize a node and enhance its features
The basic concept of the visitor design pattern and its implementation...
Change the font size
Change margin width
Change background colour