Wednesday 15 February 2012

opengl - Converting a trianglestrip to trianglelist -


I am trying to change the model represented by a triangle transliteration. When I input the model in 3dsmax, approximately 66% of its polygons are unavailable (as I think should be).

Is there any function to do this?

If you know how triangle strips work, then turning them into triangle lists is very difficult

We have the following strip (indies):

  0, 1, 2, 3, 4, 5, 6, 7 ...   

Then there will be a triangle:

  0, 1, 2, 1, 2, 3, 2, 3, 4, 3, 4, 5, 5, 6, 7 ...   

In addition, you have to reverse every other triangle:

  0, 1, 2, 1, 3, 2, 2, 3, 4, 3, 5, 4, 5, 6, 7    

No comments:

Post a Comment