Hi Omar, On 27/5/09 12:33 AM, Omar Alvi wrote:
I am new to osg. I have loaded an obj file using osgDB but I don't know how to access vertex and texture indices. I can get the vertex array from the geometry using pGeo.get()->getVertexArray() method but pGeo.get()->getVertexIndices() returns null. I cant figure out how the indices are stored for the vertices and the texture. The model is loaded and displayed fine so there is definitely a problem in the way I am accessing the data. Would really appreciate any help.
It might be that there simply are no vertex indices. Which would be good because then the rendering doesn't drop to the slow path.
A good way to understand what's happening is to convert whatever you have to a .osg file using 'osgconv file.obj file.osg' You can then inspect it at your leasure in any text editor.
Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

