Hiya Sajjad, Perhaps an easy way is to have a (multi)switch node whose value is triggered by the GUI event. The switch would have several children, each of which would be a separate group node. Each group node would have your target model as it's only child.
Then you would load up a variety of shaders on the stateset of each group node. Not sure what you meant by a different material, though. Hope that helps, David
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org