Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 2 and Version 3 of ~archive/MD2Model


Ignore:
Timestamp:
Sep 21, 2008, 8:57:57 PM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/MD2Model

    v2 v3  
    77[[br]]
    88An MD2 file consists out of two main parts: header and payload. The header has a fixed and well known size, the payload on the other hand can have variable lenght, this variable length is specified in the header. First we are only speaking about file loading and parsing, so when we are reading MD2 files, there are two major steps to take:
    9  1. read the header data, which will give you all informations you need to find data in the payload
     9 1. read the header data, which will give you all information you need to find data in the payload
    1010 2. read in the payload and perform the necessary conversions (data is often compressed)
    1111The header is read in the {{{MD2Model::loadModel()}}} function. Since all the data formats in which the data is stored are exactly defined in the MD2 file spec {{{fread(...)}}} is our friend!