Well, I could do it, but why bother when theres a simpler solution that would work better?
Also, another issues is triangle stripping.
I realized that the index data consists of triangle strips, not just triangles as I have assumed which is why the polygons look so garbled. In the gbxmodels, the triangles seem to be in triangle strip format as well since it can be seen with the intentional degenerate triangles in the tags. Usually with triangle strips, a degenerate triangle, usually contains 2 of the same vertex coords indicies. You will see many of those in the gbxmodel tags's triangle block, which is why I assume it also uses triangle strips.
Converting a model into a series of triangle strips is definitely something that seems challenging as it involves some graph theory.
Bookmarks