Hi Peter,

I believe you are over complicating the process.  Just set up the
vertex/normal/colour arrays and primitives sets as you would do
without buffer objects enabled, see the osggeometry example for an
illustration of how to do this.  Once you have got this sorted out
then just enable the use of buffer objects via
geometry->setUseVertexBufferObjects(true), and that's it, the OSG will
do the rest for you.

Robert.

On Wed, Jun 16, 2010 at 11: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

Reply via email to