Hi, I have found some questions about this problem on the net but no complete answer in my point of view.
I want to explain the problem by the following example: I have an OBJ file which has the following part ... v 20.000000 -0.000001 0.000000 v -0.000001 -20.000000 0.000000 ... v -0.000000 -10.000000 17.320507 v 0.000000 0.000000 0.000000 # 11 vertices ... After importing this OBJ file into my scene, when I export the node as an OSG file, I saw that the number of vertices become more then 11. Some of them duplicated. After a bit research, I saw that in the OBJ plugin, it is inserting the vertices in to vertexlist multiple times. Because, i.e. in the OBJ file with the following snippet ... f 1/12/1 5/5/5 6/6/6 f 5/5/5 2/2/2 8/8/8 ... in the face definition, there are multiple times of reference to vertex 5, so vertex 5 is inserted multiple times. 1) What I couldnt understand is, isn't it the correct way to use osg::DrawElementsX instead of DrawArrays ? Do you think that it will solve the problem ? 2) I dont know the exact difference between osg::DrawElementsX and DrawArrays but if I will convert the OSG plugin to use osg::DrawElementsX instead of osg::DrawArrays, do you see any future problem related with my proposal? BR Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
