cff29546 / pzmap2dzi

A command-line tool to convert Project Zomboid map data into Deep Zoom format
MIT License
52 stars 17 forks source link

define max zoom level (to save storage) #22

Closed Nightreaver closed 1 month ago

Nightreaver commented 1 month ago

I was thinking, is it possible to set the max zoom level?

my current max zoom level is ( lol ) image

I think for my purpose it would be enough to zoom in/out until

image

Would it skip some render tiles or is it simple bitmap scaling to this point? I feel like 300+gb for this map is a bit much

Is this achievable with "omit_levels" ?

The explanation is not fully clear to me... How many levels are there? If I omit 2 levels, how much "zoom" do I loose? ect.

cff29546 commented 1 month ago

"omit_levels" does just that: setting "omit_levels = 1" saves approximately 75% of space by skipping the maximum zoom level, and "omit_levels = 2" would save another 75% based on that.

Nightreaver commented 1 month ago

But the calculation of the tiles that will be generated does not reflect that?

cff29546 commented 1 month ago

But the calculation of the tiles that will be generated does not reflect that?

PZ only offers textures at the highest zoom level, so the rendering can only occur at that level. The levels that are omitted are removed after being thumbnailed for lower zoom levels to reduce disk size.

Nightreaver commented 1 month ago

It worked well.

been rendering with

    omit_levels[default](base): 3
    omit_levels(base): 2
    omit_levels: 2

which is a quite good storage/quality ratio