Peter, You create an index array (EBO) with one of the osg::DrawElements* classes. Then call osg::Geometry::addPrimitiveSet to associate it with the VBO.
Glenn Waldron : Pelican Mapping On Wed, Jun 16, 2010 at 6:18 AM, Peter Wrobrl <[email protected]> wrote: > Hi, > > sorry, the process is still not clear for me. So just to summerize: I > create arrays for Vertices, Normals and UVs, all of them have the same > length and I set them with Geometry::Vertex/Normal/TexCoordArray. > The Triangles I want to render share some of these VertexData. So I would > like to pass an Index Array ( I guess the EBO ), which builds the triangles > from the Index Array. How do I specify this Index Array ? > > Thank you! > > Cheers, > Peter > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=28994#28994 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

