DragonDev1906 / Minecraft-Overviewer

Render high-resolution maps of a Minecraft world with a Leaflet powered interface
https://overviewer.org/
GNU General Public License v3.0
2 stars 0 forks source link

Handle transparent blocks correctly #13

Open DragonDev1906 opened 4 years ago

DragonDev1906 commented 4 years ago

Options:

Tirpitz93 commented 4 years ago

https://minecraft.gamepedia.com/Opacity

Tirpitz93 commented 4 years ago

another option: to abuse the minecraft wiki to scrape transparent block IDs.

Tirpitz93 commented 4 years ago

yet another option: assume all new blocks are transparent, may not be the fastest or most efficient but it should work in most cases and would render any known blocks underneath new blocks just in case they are transparent.

Tirpitz93 commented 4 years ago

Potentially solved by #3 through using a proper renderer

DragonDev1906 commented 4 years ago

I think the best option (for now) would be to check the alpha of every pixel "inside" of the block for beeing 1 (or almost 1 because of floats). Probably best to do that C (like alpha_blend) and call it from Textures or BlockRenderer