To give a little understanding I am trying to make an OpenGL friendly file containing an entire FFVII field model (less the animation), therefore I have loaded the HRC and all of the corresponding P files into a single class (which works nicely).

Now with that out of the way I can get to som pseudo-code for what i'm doing:

- Code: Select all
`for each Bone in HRC.Models`

{

P = Bone.P

for each Group in P

{

Store Polygon Type

for Group.FirstPolygon to Group.PolygonCount increment i

{

glColor3ubv(P.VertexColors[P.Polygons[i].Vertex[0]]));

glVertex3fv(P.Vertices[P.Polygons[i].Vertex[0]]);

...

And on for indexes 2 and 3

...

}

}

}

The summary (if you couldn't understand that very obscure pseudo-code) is that I am looping through the groups, starting with the first polygon (as defined by the group) for the length (also defined by the group) and rendering the triangles as I go.

Hopefully I described it well enough to get some help, otherwise please let me know what I need to clarify.

Thanks!