Hi Peter, On Wed, Apr 22, 2009 at 9:47 AM, Peter Wraae Marino <[email protected]> wrote: > Q: When we looked at the enum values possible we found that there is a > BIND_OFF, is this the default value > if not specified? and does this mean that the geom will use the last binding > value used from the last rendered geom?
It simply means that Geometry will do an non op for that particular vertex attribute, in your case it won't do set any colour array, so the colour that OpenGL will use in rendering with will l be the last glColour that the previous valid osg::Geometry (or other drawable) set. It's valid to have BIND_OFF for colour array for cases when you are using OpenGL lighting and have an osg::Material that sets the ColorMode to OFF. However, if you have OpenGL lighting disabled or an osg::Material with ColorMode not set to OFF then OpenGL will use the glColor value, so you must assign at least a single colour to your geometry. So... just fix you underdefined osg::Geometry so that it explicitly set the colour and the problems will disappear. The same applies to the other vertex attributes. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

