UE4 GDAL 生成Landscape (二)
GDAL生成高度图和纹理图
使用到的相关GDAL命令。
gdalinfo -stats
gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -r near -of GTiff input.tif out.tif
gdal_translate -projwin 10698757.655113876 3745175.85848338 10700774.655113876 3743158.85848338 -outsize 2017 2017 -r lanczos input.tif output.tif
gdal_translate -ot Int16 -scale -484.0 7447.0 0 65535 input.tif output.tif
效果
UE4 Landscape 缩放比例的计算
UE4 Landscape 推荐的分辨率
Recommended sizes: 127, 253, 505, 1009, 2017, 4033, 8129)
UE4 纹理推荐大小
power of two recommended e.g. 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192