Skip to content

A showcase of Minecraft map image generator which renders a map image based on the provided data.

Notifications You must be signed in to change notification settings

Blika/MinecraftMapMaker_Showcase

Repository files navigation

MinecraftMapMaker_Showcase

A showcase of Minecraft map image generator that renders a map image based on the provided data.

What does it do?

Basically, it gives you an image as an output. All you need is to provide a block height map (currently no tools to do it, as it's just a showcase) and tweak settings. This program will use all of your computer cores during rendering to speed up the process.

There are multiple settings (located in input/settings.json):

  • Block height map and color map which are essential for this to work. This showcase contains an example so you can tweak it and get different map images.
  • Darkening coefficient that, obviously, randomly darkens pixel so the output image looks a bit better.

No darkening.

Darkening set at 0.1.

  • Shading coeffiecent that further darkens pixels when shadows or outlines are processed.
  • Light direction which decides from where the light is processed. (Essential for outlines and shadows to work)
  • Light radius. You can think that "light" in this project is a sun, and this settings desides how big this sun is. Without it the shadows would be somewhat unnatural (very long and tall). (Essential for shadows to work)
  • Light offset that decides where the light is actually located. If we only provide a light direction the program won't know exactly how to render light so we would have to assume it (meaning it would be hardcoded). (Essential for shadows to work)
  • Drawing outlines. It renders outlines based on light direction. As a result, it adds volume to the output map.

Darkening 0.1, outlines enabled. The result looks so much better now.

  • Drawing shadows. It heavily depends on light settings for obvious reasons and by tweaking this you're going to get different outputs. Sadly, as we only provide a height map, so we assume that there isn't any empty space under blocks. Therefore, some shadows may look strange.

Darkening 0.1, outlines enabled, shadows enabled. Based on shadows you can guess each object's actual height. Trees are quite tall so from here their shadows may not look good but buildings' shadows are okay.

Usage

To use this tool you can either download it from releases or build it yourself using CMake (there are build scritps available).