Hi Werner, The colours on an osg::Geometry (passed to OpenGL via glColor or glColorArray) only take effect if glColorMaterial is off, but default in the OSG its on and set to AMBIENT_AND_DIFFUSE, but a default constructed osg::Material will switch off the ColorMatieral mode so I suspect you have one such material in your scene. See osg::Material and also OpenGL docs on glMaterial/glColorMaterial.
Robert. On 7/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello again. I am trying to set a few objects transparent, and I have discovered something a bit strange. When creating my own Geometry node, adding a color array to the geometry (using setColorArray and setColorBinding), the transparency of those colors are ignored. At this moment I have already set the RenderingHint(osg::StateSet::TRANSPARENT_BIN) and setMode(GL_BLEND, osg::StateAttribute::ON) on the acompanying StateSet. If I skip using the color array, and instead add the color/transparency setting on the material on the given StateSet it renders as expected. Is this a "bug" or is it impossible to use the individual face colors on the (color array) on the geometry? Regards, Werner Lindgård. _______________________________________________ Werner Lindgård, Programmerer Telephone +47 67 81 70 00 Direct line +47 67 81 70 68 [EMAIL PROTECTED] ViaNova Systems AS Leif Tronstads Plass 4, P.O.Box 434 N-1302 Sandvika, Norway ________________________________________________ http://www.vianova.no http://www.novapoint.com ________________________________________________ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
