Hi Duan, On Tue, Nov 30, 2010 at 3:11 AM, Duan Linghao <[email protected]> wrote: > I read a model (ive),which is created by 3dMax.How can I change the colour of > the model when it is displayed on the screen?
It depends upon what you want to achieve and how your model is put together. I know nothing about your model, and what precisely you be my colour of your model as there are multiple ways one could interpret colour changes. I also don't know how much you know about OpenGL/OSG so don't know where to start. Are you familiar with how OpenGL manages colour? Are your familiar with controlling colour via osg::Geometry? Are you familiar with osg::Material + OpenGL's glMaterial and color material? Do you want to have a single colour for the whole model? Do you want the model light, or do your want to disable lighting? Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

