\n\n <\/p>\n Figure 3.3 An MD2 model with only the vertices rendered. You can see a rough outline of the model beginning to take shape.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n struct SMD2Tri {<\/p>\n unsigned short m_sVertIndices[3]; unsigned short m_sTexIndices[3];<\/p>\n };<\/p>\n Exactly m_iNumTriangles of these structures is stored at<\/p>\n m_uiOffsetTriangles bytes in the file.<\/p>\n In addition to the three vertex indexes, each triangle contains the same amount of indexes into the texture coordinate array, which you will get to in a second. Each vertex index has an accompanying index into the array of texture coordinates. This allows textures to be added easily.<\/p>\n Using this information, you can draw the whole model as triangles as shown in Figure 3.4. Finally, the model is starting to look decent; all it really needs are some textures.<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Triangles in MD2 files are made using vertex indexes. For each tri\u00adangle, three two-byte integer values are stored, each representing a vertex in the vertex array. If the three values are 4, 6, and 14, those values can be used to index into the vertices of the current frame. All frames use the same triangle […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":0,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
|