I exported some sprites from the game Half-Life; however, they seem to have tones of black instead of the alpha channel. For example:


How do I convert the black colors into alpha/transparency?


Assuming you are using Windows, I recommend the freeware Irfanview.

When you Save as PNG, select the options Save Transparent Color and Save Transparency as Alpha channel. As you are saving a dropper will allow you to click on an area with the color you want to define as Alpha (in this case Black)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.