Hi,

Ok. There are some unobvious things with indices array.

The first thing, that confused me is there are index arrays for all data 
types(vertex/normal/texcoord/fogcoord), so which one should i use for 
interleaved array?

The second thing is how to access IndexArray directly. I mean the way as in 
your example with vertices. I've tried to take indexarray from 
"getVertexIndices()" to "osg::IndexArray* _indices", but it crashes on 
temp->getVertexIndices()->getNumElements();

The copy cycle looks like this:


Code:
for(int k = 0; k < _numIndices; k++)
{
indices[i][k] = (*_indices).index(k);
}


there "i" - mesh index, and "indices" is 2-dimensional int array i din't see, 
if it works, because crash occures much earlier.

Thank you!

Cheers,
Igor

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30748#30748





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to