Hi Ken, There isn't any easy way of doing interleaved arrays with the existing classes, you'd need to implement your own vertex array code for doing this.
Interleaved arrays are far less critical these days so I'd recommend just porting it to use separate arrays. Robert. On Thu, Jan 8, 2009 at 3:27 PM, Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW <[email protected]> wrote: > I'm porting some OpenGL code that has the vertex position, normal, tex > coord, ... interleaved in one large array. > > In OpenGL I could use one buffer: > glBindBuffer( GL_ARRAY_BUFFER, bufferObject ); > glVertexPointer( 3, GL_FLOAT, sizeOfVertex, 0 ); > glNormalPointer( GL_FLOAT, sizeOfVertex, offsetToNormal ); > > I'm struggling to figure out how to do it in OSG. The only OSG examples > I can find have the position data in one array, the normal data in > another, ... I've been looking through the source code, but I'm not > having much luck. Any pointers? Thanks. > > Ken. > _______________________________________________ > 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

