-
Book Overview & Buying
-
Table Of Contents
OpenSceneGraph 3.0: Beginner's Guide
OSG supports various polygonal techniques for manipulating the geometry objects. These pre-processing methods, such as polygon reduction and tessellation, are often used to create and improve polygonal models for rendering at a later time. They are designed to have a simple interface and be easy to use, but may perform complex calculations backstage. They are not suggested to be used on-the-fly because of possibly massive computations.
A few polygonal technique implementations in OSG are listed as follows:
osgUtil::Simplifier: This reduces the number of triangles in geometries. The public method simplify() can be used to simply enter a geometry object.
osgUtil::SmoothingVisitor: This calculates normals for any geometries containing primitives, for instance, the octahedron that we have just seen. The public static method smooth() can be used to generate smoothed normals of a geometry, instead of reallocating and setting the normal array yourselves.
osgUtil::TangentSpaceGenerator...
Change the font size
Change margin width
Change background colour