Here it is:

http://openscenegraph.org/documentation/NPSTutorials/osgGeometry.html

It is how the colorIndexArrays are done. 


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Wed 6/27/2007 2:47 PM
To: osg users
Subject: Re: [osg-users] Shaders Question
 
On 6/27/07, Colagiovanni, Lawrence W. <[EMAIL PROTECTED]> wrote:
> How would use DrawElementsUShort to assign the individual vertex attributes?

You don't its just a wrapper around glDrawElements using a ushort
array.  It just indexes the vertex arrays that are passed to OpenGL.

The OSG passes vertex arrays that are assigned to osg::Geometry use
setVertexArray etc.

>  Some examples I found online used TemplateIndexArray, which is why I went
> that route.

Could you provide a URL?  Its not a good way to do things.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to