mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-17 08:35:40 +00:00
02fe3ef3e3
This allows only specific regions of the map to be smoothened, especially important on imported digital elevation models. It uses the Inverse Distance Weighting / Shepard's method as mentioned by Imarok and formerly implemented in the Pyrenean Sierra map by wraitii ina796800bb1. Supersedes the globalSmoothHeightmap function in FeXoRs heightmap library, refs #3764. Drop the heightmap argument to be consistent with the other painters. If painting on arbitrary heightmaps is wished, the createArea mechanism, all Placers, Painters, Constraints and Areas can and should support that. Update the HeightmapPainter from6319647795to not break if TILE_CENTERED_HEIGHT_MAP is enabled (i.e. numVertices = numTiles), refs #5018. Use that mode on Mediterranean and Red Sea. Drop the disabling of bicubic interpolation in the HeightmapPainter instead of extending it to this feature. Inevitable smoothing performance improvement for Belgian Uplands (from 45 to 15 seconds per call), even if it implies a somewhat different outcome, refs #5011. This was SVN commit r21175.