Hi Robert -- I'm working on the .osg support now. I've also improved the example code. I'll post all code later today. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> +1 303 859 9466
_____ From: [email protected] [mailto:[email protected]] On Behalf Of Paul Martz Sent: Friday, December 26, 2008 9:05 PM To: 'OpenSceneGraph Submissions' Subject: [osg-submissions] Support for draw_instanced Merry Christmas, Robert -- Attached is my first whack at support for the draw_instanced OpenGL extension in OSG. I define 5 new PrimitiveSets, each are "instanced" analogues of the existing 5 PrimitiveSets, and differ from the existing PrimitiveSets in that they take a "numInstances" parameter and use the appropriate extension command to do the drawing. I've included an example, osgdrawinstanced, which draws 1k quads with a single 4-vertex glDrawArraysInstancedEXT command. The vertex shader uses the gl_InstanceID to rotate each quad and assign a different color to each quad. Once this is folded into the distribution, I'll add support for .osg and .ive, unless you feel like adding it yourself (shouldn't be too much work). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> +1 303 859 9466
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
