Changes between Version 11 and Version 12 of PMP_File_Format


Ignore:
Timestamp:
Jun 8, 2016, 11:41:05 PM (8 years ago)
Author:
Palaxin
Comment:

add/improve comments for the description of the .pmp file format

Legend:

Unmodified
Added
Removed
Modified
  • PMP_File_Format

    v11 v12  
    1919#!c
    2020 PMP {
     21     // FILE HEADER
    2122     char magic[4]; // == "PSMP"
    2223     u32 version; // == 6
    2324     u32 data_size; // == filesize-12
    24      
    2525 
     26     // DATA SECTION
    2627     u32 map_size; // number of patches (16x16 tiles) per side
    2728 
    28      u16 heightmap[(mapsize*16 + 1)*(mapsize*16 + 1)]; // vertex heights
     29     u16 heightmap[(mapsize*16 + 1)*(mapsize*16 + 1)]; // vertex heights with lines indexed from
     30                                                       // left to right, columns from bottom to top
     31     u32 num_terrain_textures;
     32     String terrain_textures[num_terrain_textures]; // filenames (no path and file ending), e.g. "cliff1"
    2933 
    30      u32 num_terrain_textures;
    31      String terrain_textures[num_terrain_textures]; // filenames (no path), e.g. "cliff1.dds"
    32  
    33      Patch patches[mapsize^2];
     34     Patch patches[mapsize*mapsize]; // lines from left to right, columns from bottom to top
    3435 }
    3536