minetestmapper
minetestmapper copied to clipboard
Tiled
A new pull request for just the code for the tiled output.
I thought you might maybe be interested in this part, because it is also a fix for issue #48.
It still needs some work to fix the discontinuities in the height shading on the tile edges, but I'll have to look into that more before I try to fix that.
Accidentally committed a type, force pushed the correct version just now.
I renamed a function and I think the code is quite OK now. Might need some more commenting. I'll try to do that soon(ish)
I refactored the code a bit and renamed some unclear variable/function names. Also laid the groundwork for building the zoom pyramid in a separate utility. I think it's ready to be pulled now :-)
./minetestmapper -i /opt/docker/minetest/data/worlds/world/ -o ~/pxe/volume_pxe/map.png --zoom 4 --drawplayers --tilesize 4096x4096 [sudo] password for opvolger: Warning: Falling back to using colors.txt from current directory. Warning: The width or height of the image to be created exceeds 4096 pixels! (Dimensions: 16384x16384) Warning: could not write to 'metadata_/home/opvolger/pxe/volume_pxe/map.png.txt'!
metadata_ dir is not correct.
wrote image:-1_-1_map.png wrote image:-1_0_map.png wrote image:-1_1_map.png wrote image:-1_2_map.png wrote image:-1_3_map.png
negative ?
negative ?
Yes. Why not? 0_0_map.png is the center of the world.
This way the tile names are always the same, no matter what part of the world you request.