Hi Duan, On Tue, Nov 30, 2010 at 3:55 PM, Duan Linghao <linghaod...@gmail.com> wrote: > I'm not so familiar with that,I want to have a single colour for the whole > model.Someone told me to use setState,but I have no idea how to use that.Can > you say it more specificly,I'm a beginner on OSG.Thanks a lot!
Are you a beginner at OpenGL as well? Are you familiar with glMaterial? The osg::Material StateAttribute is a wrapper around this, and provide the ability to set the colour of objects. You can attach a Material to a StateSet and attach the StateSet at the top node of your subgraph. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org