There is some example code when I studied OpenSceneGraph, most of these come from book