Make texture using full or half transparent pixels
Introduction
Minecraft Dungeons is known to use textures with invisible or half-visible pixels, that’s an issue when your software do not allow you to save pixel with alpha value set to 0. Here come handy scripts to help you making those tricky texture!
Sources
All scripts are available here.
If you find any bugs, please post a new issue on GitHub.
Requirements
- Pillow is required to use those programs!
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
Follow this tutorial if you don’t know how to use inline commands: YouTube Link
Scripts
-
remove_alpha.py
From Alpha to Opaque.
Set all pixels opaques.
- Use
BASE_remove_alpha.png
as base. - Return
RESULT_remove_alpha.png
.
- Use
-
get_alpha.py
From Opaque to Alpha.
Set all pixels transparents.
- Use
BASE_get_alpha.png
as base. - Return
RESULT_get_alpha.png
.
- Use
-
merge_alpha_layers.py
Merge both types easily.
With this one, you have to set "masks", one with opaque pixels, one with transparents pixels.
- Use
BASE_merge_alpha_layer0.png
as base for solid pixels. - Use
BASE_merge_alpha_layer1.png
as base for transparent pixels. - Return
RESULT_merge_alpha.png
.
- Use