Thanks for the help

I got it working by adding this to the StateSet
        osg::VertexAttribDivisor *divisor = new osg::VertexAttribDivisor(1, 1);
        ss->setAttribute(divisor);

And changing my loop to add one offset per primitive to my vertexArray

And thanks again!! I would never have figured that one out!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69747#69747





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to