L3DT documentation
Large 3D terrain generator

This is an old revision of the document!


DesignMapPixel

Description

DesignMapPixel is the map pixel data type used in maps initialised as MAP_DesignMap.

Definition

In ExtAPI_defines.h:

typedef struct {
  short int  Alt;
  unsigned char Peak;
  unsigned char Frac;
  unsigned char Cliffs;
  unsigned char Erosion;
  unsigned char Lakes;
  unsigned char Climate;
  unsigned char SpecType; // 0=none, 1=sea, 2=Mountain, 3=Plateau, 4=Volcano, 5=file_overlay
  unsigned char SpecParam;
} DesignMapPixel;

Member data

Member name Type Comments
Alt short int The altitude of the design map pixel, in metres (-32k → 32k).
Peak unsigned char The strength of the peak overlay algorithm to be applied to this pixel when generating the heightfield (0…255).
Fractal unsigned char The strength of the fractal roughening to be applied to this pixel when generating the heightfield (0…255).
Cliffs unsigned char The strength of the cliffs/terraces algorithm to be applied to this pixel when generating the heightfield (0…255).
Erosion unsigned char The strength of the erosion algorithms to be applied to this pixel when generating the heightfield (0…10).
Lakes unsigned char The strength of the lake-finding algorithm to be applied to this pixel when flooding lakes automatically. (0…255).
Climate unsigned char The integer ID number of the climate to be used in this pixel (IDs are allocated by the project's climate list).
SpecType unsigned char The integer ID number of the special heightfield overlay to be applied to this pixel when generating the heightfield.
SpecParam unsigned char The integer parameter to be used with the chosen special heightfield overlay (set by SpecType).

Type identifiers

VarID N/A (DesignMapPixel is not a valid variable type.)
MapID MAP_DesignMap.
 
zeolite/types/designmappixel.1294889352.txt.gz · Last modified: 2017/08/31 04:16 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki