Implementing special effects

The osgFX library provides a special effects framework. It is a little analogous to the osgShadow NodeKits, which has a shadow scene as the parent of all shadowy sub-graphs. The osgFX::Effect class, which is derived from osg::Group, implements special effects on its child nodes, but never affects its siblings and parent nodes.

The osgFX::Effect is a pure base class that doesn't realize actual effects at all. Its derivatives include anisotropic lighting, highlights, cartoons, bump mapping, and outline and scribe effect implementations, and it can be extended at any time for different purposes.

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.