Hi Ben,

The OSG doesn't support interleaved arrays, but its does support
osg::DraweElementsUByte/Ushort/UInt perhaps its the these you are
looking for in place of osg::DrawArrays.

Robert.

On 7/19/06, Ben Cain <[EMAIL PROTECTED]> wrote:




Hello,



Is there an OSG example that builds primitives similar to
glInterleavedArrays?  I'm confused trying to figure out how to handle
indexing for interleaved data using osg::DrawArrays or similar.



Note I'm **not** trying to interleave coordinate, color, normal, and texture
data.  For now, I'm just trying to handle offsets for repeated coordinate
data.



I have data representing the cross-sections of cylinder/wormlike object.
The data for the cross-sections is repeated very 8 points.  How do I handle
the offsets for coordinates?  Data is interleaved something like this:



      4              12              20

   5     3        13    11        21    19

  6       2      14      10      22      18     ...

   7     1        15    9         23    17

      0              8               16



Much thanks,

  Ben


_______________________________________________
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