Changes between Version 2 and Version 3 of ~archive/MD2Model
- Timestamp:
- Sep 21, 2008, 8:57:57 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/MD2Model
v2 v3 7 7 [[br]] 8 8 An 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 information syou need to find data in the payload9 1. read the header data, which will give you all information you need to find data in the payload 10 10 2. read in the payload and perform the necessary conversions (data is often compressed) 11 11 The 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!