Hi Onkelpoe,
Onkelpoe wrote:Let´s assume, WM puts a 1px Border around the 8192 to make it 8193.
Hmmm...looking at the last row/column of pixels, it seems that WM is just duplicating the values for the 8192 row/column from the 8191 row/column. In this case, crop using 0-8191.
Onkelpoe wrote:So +1px on all four sides.
All four sides? That would make the map 8194x8194. Just the X+ and Y+ edges appear to be extended (in L3DT, that means the east and north).
Onkelpoe wrote:To cut out "a real 8192 without the 1px border", I would think I had to crop from px 1 to 8192.
No, the border is only on the high coordinate side, so no need to crop out row/column 0, as it contains real data. Instead crop out the 8192 row/column, as it's a duplicate of 8191.
Onkelpoe wrote:(as the whole image would be 0-8193)
0-8193 would make a 8194 pixel map. See below.
Onkelpoe wrote:But when loading the 8193 heightfield into L3DT, I get 0-8192 range for the 8193 heightfield.
(Last pixel to the right shows 8192, when mouseover this location...)
Ah, this is one of the joys of counting on number lines where the first value is 0. If it helps, think about a 4 pixel heightmap. The four coordinates are 0, 1, 2, and 3. A coordinate of 4 would actually be the 5th value. Thus, a coordinate of 8193 would be the 8194th value, which is only possible if the map is 8194 pixels or larger. Conversely, the maximum 0-based coordinate on a 8193 pixel map is 8192.
Cheerio,
Aaron.