Pyramid.Info
Fields / Optional
pad
The pad width of this pyramid.
Tile padding is used to avoid color bleeding that will occur when texture samples are filtered at the edge of a pyramid tile (assuming tiles are stored in some kind of texture atlas). The tile pad width gives the number of safety pixels at the that are borrowed from neighbouring pyramid tiles:
8x8 tile, with a pad of 2: 0 1 2 3 4 5 6 7 +---+---+---+---+---+---+---+---+ 0 |###|###|###|###|###|###|###|###| +---+---+---+---+---+---+---+---+ 1 |###|###|###|###|###|###|###|###| +---+--(X)--+---+---+--(X)--+---+ 2 |###|###| | | | |###|###| +---+---+---+---+---+---+---+---+ 3 |###|###| | | | |###|###| +---+---+---+---+---+---+---+---+ 4 |###|###| | | | |###|###| +---+---+---+---+---+---+---+---+ 5 |###|###| | | | |###|###| +---+--(X)--+---+---+--(X)--+---+ 6 |###|###|###|###|###|###|###|###| +---+---+---+---+---+---+---+---+ 7 |###|###|###|###|###|###|###|###| +---+---+---+---+---+---+---+---+
The point coordinates marked with (X)
will be mapped to the corner vertices of each terrain mesh sector. Only the effective region of a padded tile (i.e. the square surrounded by (X)
) contains actual data. The padded pixels are sampled from neighbouring source tiles and carry redundant information.