Once I had the similar problems, but I couldnt get satisfaying answers from the newsgroup. So I had to write most of the things from scretch.
I just guess that you load some model from file like 3DS etc... Problem is, file readers for some reason doesnt generate indice information even the orginal model file contains... The reason is may be because of optimization issues... Also Optimizer do the smilar thing. i.e. TriangleFan is working well without indices. I mean it is using stream of vertex information... Also without indices, reading a model file and generating textures, normals etc is easier then dealing with indices again... So there is no quick solution to your problem as I know. Maybe Robert or others may have different solutions which we can benefit. 2006/8/26, Jeff Kershner <[EMAIL PROTECTED]>:
I need to feed vertex and index information into my physics engine so I do the following: const osg::Array* pVertexArray = pGeometry->getVertexArray(); const osg::IndexArray* pVertexIndices = pGeometry->getVertexIndices(); The problem is that pVertexIndices is always NULL. The box I am loading does have 8 vertices but there must be an index buffer in there for it to draw correctly. Am I using this correctly? /jk _______________________________________________ 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/
