sisby-folk / antique-atlas

A minecraft mod adding a hand-drawn client-side minecraft world map with biomes, structures, waypoints, and less! A fourth-generation rewrite of Hunternif's Antique Atlas utilizing Surveyor.
https://modrinth.com/mod/antique-atlas-4
Other
30 stars 13 forks source link

Fade subtiles based on distance to null tiles #87

Open sisby-folk opened 6 months ago

sisby-folk commented 6 months ago

The map looks silly when zoomed out:

image

And it's partially because textures don't tile with the outer unexplored area, making them look like a brick of disconnected mess.

If we make textures tile to unexplored areas, this happens:

image

The hard square border looks ugly, and it looks even uglier on hard-tiling textures like dense forests.

If texture alpha was gradually lowered towards an unexplored area, the map might appear to have "fog", which would allow us to take the second approach without the square downsides.

We can't change the way the tile is drawn due to batching, so this should be done by redrawing the background over top of the subtiles at various alpha levels (subtiles grouped based on some algorithm for this, then batched per-opacity)

sisby-folk commented 6 months ago

here's a vague mockup of that - we can probably do better in code

mockup3