betacraftuk / betacraft-launcher

A launcher for Minecraft focused on legacy versions of the game
https://betacraft.uk
GNU General Public License v3.0
319 stars 41 forks source link

[Addons] Export texture atlas image files upon generation #64

Open muzikbike opened 3 years ago

muzikbike commented 3 years ago

From 13w02a onwards (for blocks and items, 19w06a for particles, 19w07a for paintings and 19w08a for effect icons), instead of being defined directly in the game's files, the textures are instead automatically stitched together into a single file and saved in VRAM. These generated texture atlases are not accessible normally. However, from 13w02a up to 13w17a, as well as from 14w25a to 1.8, the images for texture atlas files were exported to the .minecraft folder, presumably as a debug feature. 13w18a and 1.8.1-pre1 stopped this practice, resulting in these files no longer being accessible. I propose an addon for 13w18a-14w21b and 1.8.1-pre1-present that, when selected, will create image files for these texture atlases in the game's directory again, for debugging/documentation purposes, as to get a more accurate source for these atlases (while they can be passed to the visual output via a shader, this gives it a black background, therefore forbidding transparency and translucency, and also isn't possible in versions before 1.15).

muzikbike commented 2 years ago

For the record, here are the known atlases which are generated: