On 5/16/07, Serge Lages <[EMAIL PROTECTED]> wrote:
But setting : geometry->setColorBinding(osg::Geometry::BIND_OFF); Sould not prevent this inheritance ? We must set a color array to each geometry to not get the last color applied to it, even if a texture instead of a color is applied to it ?
BIND_OFF just switches off any local colour array, it makes the glColor undefined by the local osg::Geometry. BIND_OFF for colours is only usuful if you use osg::Material as set the ColorMode to OFF which tells OpenGL to ingore glColor completely. Note, Matrial::ColorMode is equivilant to glColorMaterial. Please read up on glMaterial and glColorMaterial to understand how this all works. The up shot is, unless you have good reason that you don't need to, you should defined at least one color per osg::Geometry. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
