Hi Robert,
PrimitiveSet can use multiple instance but If I need to use the same PrimitiveSet with different number of instance, I have to duplicate the PrimitiveSet and potentially use many memory just for one integer. I submit a new function that allow user to specify how many instance to draw on draw call. void osg::PrimitiveSet::draw(State& state, bool useVertexBufferObjects, unsigned int numInstances); Cheers David
primitiveSet.7z
Description: Binary data
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
