Re: [osg-users] Getting texture coordinates and normals of each vertex of a loaded model

2008-07-28 Thread Alberto Luaces
Hi Franclin, The references to the vertices that osg::TriangleFunctor returns point to the real data of the geometry, so if you subtract their pointers to the first vertex pointer of the geometry, you'll get the index to that vertex and you will be able to get its normal and UV coordinates:

[osg-users] Getting texture coordinates and normals of each vertex of a loaded model

2008-07-27 Thread Franclin Foping
Dear All, Is there any algorithm in OSG to compute normals and texture coordinates of each vertex of a loaded model? With the osg::TriangleFunctor and osg::TriangleIndexFunctor, I can perfectly find out all triangles making up of a given node. However, the (big) issue is to be able to find