-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
OpenSceneGraph 3.0: Beginner's Guide
This chapter explained how to create geometry entities simply with vertices and the drawing primitives defined with OSG. These geometries are stored in osg::Geode objects, which are recognized as the leaf nodes of a scene graph. All scene managements and updates in the 3D world serve the purpose of modifying geometry behaviors and transmitting vertex data and geometry primitives, in order to gain different rendering results.
In this chapter, we specially covered:
The basic concepts of OpenGL immediate mode, display lists, and vertex arrays, and their implementations in OSG.
How to render simple shapes for quick tests by using the osg::ShapeDrawable class.
How to create and render various shapes in a more efficient way by using the osg::Geometry class.
How to operate on vertex attribute's arrays, index arrays, and geometry primitive sets.
How to use functors to retrieve vertex properties, primitives, and index data, and, through inheritance and rewriting of the member function, realize...
Change the font size
Change margin width
Change background colour