• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

MattiBorchers/MinecraftEarthMap: WorldPainter script with heightmaps and other m ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

MattiBorchers/MinecraftEarthMap

开源软件地址(OpenSource Url):

https://github.com/MattiBorchers/MinecraftEarthMap

开源编程语言(OpenSource Language):

JavaScript 93.8%

开源软件介绍(OpenSource Introduction):

Minecraft Earth Map

WorldPainter script and heightmaps for generating an Earth map for Minecraft.

Just run the script "world.js" from "tools" -> "Run Script..." in WorldPainter. Be sure to change the "path" variable to match your folder with the script and files. Be sure to place all images, layers and terrain in the right folders.

The script was tested on an Intel i5-6500 with 32 GB of RAM.

Time / RAM needed to execute the script for 1.12:

1:4000 = 3 min / 2.1 GB RAM

1:2000 = 14 min / 5.7 GB RAM

1:1000 = 62 min / 19.1 GB RAM

Sources

Detailed process with images: http://earth.motfe.net/

Heightmap: https://visibleearth.nasa.gov/view.php?id=73934

Bathymetry: https://visibleearth.nasa.gov/view.php?id=73963

Globcover: http://due.esrin.esa.int/page_globcover.php

Köppen Climate Classification: https://figshare.com/articles/Present_and_future_K_ppen-Geiger_climate_classification_maps_at_1-km_resolution/6396959/2

Sea Surface Temperature: https://svs.gsfc.nasa.gov/3652

Cities & Ice: http://www.shadedrelief.com/natural3/pages/extra.html

Major Mineral Deposits: https://mrdata.usgs.gov/major-deposits/

Streets: https://download.geofabrik.de/

©️ OpenStreetMap Contributors https://www.openstreetmap.org/copyright

Images

The base of the script are the various images linked above. To determine the right resolution, I referred to Minecraft's region files, which have a size of 512x512 blocks. The final map should be a multiple of 512. The next step in my process was to edit the existing images. For example, the "Köppen Climate Classification" image had an original resolution of 43200x21600 pixels. The nearest fit for the map is 43008x21504, so I changed the canvas size (I didn't want to resize the image, otherwise information would be lost. Anti-aliasing is also forbidden since the script assigns a biome to a specific RGB color.)

The same step was made for the Globcover, except the original resolution was 129600x55800, which is not the 2:1 format. That's because Antarctica isn't pictured in this image. At first, I changed the canvas size to 129600x64800 (added the new pixels at the bottom of the existing image), then resized the image to 43200x21600 pixels (this is exact 1/3) without resampling (again, we don't want anti-aliasing) and then changed the canvas again to match 43008x21504.

For the heightmaps, I combined the surface elevation and the bathymetry images from NASA, which had a resolutions of 21600x10800. At first, I resized the images to 43200x21600, this time with resampling (Bicubic interpolation), so we get smoother mountains. Later, I also used a blur effect for more realistic elevation in Minecraft.

A lot of the images from "shadedrelief.com" had to be resized from 16200x8100 pixels and be applied a posterize effect afterwards, because layers are only applied or not applied. 1 or 0, black or white.

For the street data I used QGIS3 to export the images.

In summary, each image has an original resolution of 43200x21600 and is then cut to 43008x21504 (even on all sides).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
AlexProgrammerDE/balena-minecraft-server: Build a Minecraft Server using a Raspb ...发布时间:2022-08-16
下一篇:
itzg/minecraft-server-charts发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap