User Tools

Site Tools


arma:file_formats:8wvr

This is an old revision of the document!


8WVR

The following is a possible file format for 8WVR.wrp (unbinarized) files for use with ArmA.

struct8WVR 
{ 
  structHeader Header 
  { 
    ascii[4] Filetype; 
    uint TextureGrid_X; 
    uint TextureGrid_Z; 
    uint TerrainGrid_X; 
    uint TerrainGrid_Z; 
    float CellSize; 
  } 
  float[TerrainGrid_Z,TerrainGrid_X] Elevations; 
  ushort[TextureGrid_Z,TextureGrid_X] TextureGridMaterials; 
  uint NoOfMaterials - 1; //1 Based array. 
  structMaterial[NoOfMaterials] Materials 
  { 
    uint Unknown; 
    uint Length; 
    ascii[Length] Material; 
  } 
  uint Unknown; 
  structObject[NoOfObjects] Objects 
  { 
    float[4,3] TransformMatrix; 
    uint ObjectId; 
    uint Length; 
    ascii[Length] Object; 
  } 
} 

Notes

* The 'Elevations' array extends from Top-Left to Bottom-Right.
* The 'TextureGridMaterials' array is a mapping of .rvmat material files to TextureGrid cells/tiles.
* The 'Objects' array will always have at least 1 entry. Denoting the 'center' of the map.
* The 'Objects' array is the last structure in the file and the 'NoOfObjects' is a variable amount and extends from the starting offset of the structure to the EndOfFile.
* The 'TransformMatrix' for a given object is a standard 4,3 transform matrix which when decomposed determines the objects x,y,z position, scale & orientation.

arma/file_formats/8wvr.1217131261.txt.gz · Last modified: 2008-07-27 04:01 (external edit)