Terrain Formats

From Rigs Of Rods

(Difference between revisions)
 
Line 2: Line 2:
*A .terrn text file containing RoR-specific data, mainly the position of objects in the terrain. See this [[terrn file description]].
*A .terrn text file containing RoR-specific data, mainly the position of objects in the terrain. See this [[terrn file description]].
*A .cfg text file containing Ogre3D-specific data, used by the Ogre3D Terrain rendering plugin. See a [[typical terrain cfg file]].
*A .cfg text file containing Ogre3D-specific data, used by the Ogre3D Terrain rendering plugin. See a [[typical terrain cfg file]].
-
*A terrain elevation file. It is a RAW 16 bit DEM (digital elevation map). Its dimensions MUST BE 1025x1025. As a consequence, the total file size must be 2 101 250 bytes (2x1025x1025).
+
*A terrain elevation file (heightmap). It is a RAW 16 bit DEM (digital elevation map). Its dimensions MUST BE 1025x1025. As a consequence, the total file size must be 2 101 250 bytes (2x1025x1025).
*A texture file: typically a large bitmap (for example a 1024x1024 BMP) that is projected onto the terrain. This texture must include shading and shadowing (the terrain is not shaded by RoR). The light source (the sun) heading is -60 degree and altitude of 25 degree.
*A texture file: typically a large bitmap (for example a 1024x1024 BMP) that is projected onto the terrain. This texture must include shading and shadowing (the terrain is not shaded by RoR). The light source (the sun) heading is -60 degree and altitude of 25 degree.
*A miniature map: a 256x256 image (that can be the reduction of the texture file) used as a map in RoR.
*A miniature map: a 256x256 image (that can be the reduction of the texture file) used as a map in RoR.

Current revision as of 12:44, 2 September 2006

A terrain is composed of five files:

  • A .terrn text file containing RoR-specific data, mainly the position of objects in the terrain. See this terrn file description.
  • A .cfg text file containing Ogre3D-specific data, used by the Ogre3D Terrain rendering plugin. See a typical terrain cfg file.
  • A terrain elevation file (heightmap). It is a RAW 16 bit DEM (digital elevation map). Its dimensions MUST BE 1025x1025. As a consequence, the total file size must be 2 101 250 bytes (2x1025x1025).
  • A texture file: typically a large bitmap (for example a 1024x1024 BMP) that is projected onto the terrain. This texture must include shading and shadowing (the terrain is not shaded by RoR). The light source (the sun) heading is -60 degree and altitude of 25 degree.
  • A miniature map: a 256x256 image (that can be the reduction of the texture file) used as a map in RoR.
Personal tools