Why does this exported cube have too many vertices?
Posted
by
Joewsh
on Game Development
See other posts from Game Development
or by Joewsh
Published on 2013-10-22T18:06:27Z
Indexed on
2013/10/22
22:04 UTC
Read the original article
Hit count: 186
I'm trying to export md5mesh models. Just as a test I decided to export a simple cube (i.e. with 8 vertices). When I opened the .md5mesh file it lists the following:
numverts 24
numtris 12
numweights 24
Obviously the number of triangles makes sense: 6 faces * 2 to triangulate = 12.
The model only has one bone so again it even makes sense that there is one weight for each vertex. The question is though, why is the file listing 24 vertices?
Is the problem the exporter or is this normal for md5mesh's? Is it something that you have to rectify when you come to parsing the file in engine? I don't want to be parsing or drawing duplicated vertices without reason.
I'm guessing it's something to do with shading and normals. Is it a case of listing each vert 3 times, one for each facing normal?
© Game Development or respective owner