minetestmapper icon indicating copy to clipboard operation
minetestmapper copied to clipboard

Tiled

Open wziard opened this issue 7 years ago • 6 comments

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.

wziard avatar Nov 17 '18 19:11 wziard

Accidentally committed a type, force pushed the correct version just now.

wziard avatar Nov 17 '18 20:11 wziard

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)

wziard avatar Nov 26 '18 22:11 wziard

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 :-)

wziard avatar Nov 30 '18 12:11 wziard

./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.

Opvolger avatar Nov 07 '20 22:11 Opvolger

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 ?

Opvolger avatar Nov 07 '20 22:11 Opvolger

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.

wziard avatar Nov 08 '20 13:11 wziard