Hi Rui, I have now implemented an osg::VertexAttribDivisor state attribute to wrap up the glVertexAttribDivisor functionality. This is a different approach to the one you took, I have gone the route of StateAttribute as it'll be able to handle the toggling on/off of the feature as will be required once you mix subgraphs that use the VertexAttribDivisor and others that don't.
My changes are now checked into svn/trunk. The submission includes wrapper for the new class so it will be possible to read/write the attribute to .osgb, osgt and osgx files. I have written an example to test it yet. I think it'd be useful to have a new example to test it. Perhaps alongside some of the new features that I will be adding/checking in from others. Others are welcome to pitch in with the example testing. Robert.
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
