Error: Failed to perform Alpha Bleed

Hello. I have recently upgraded to PVRTexTool 2021 R1. Now, when converting the same TGA files that worked with previous tool versions, I get a “Error: Failed to perform Alpha Bleed” error.

Hi karoliso,

Thanks for your message and welcome to the PowerVR Developer Forum!

Could you please attach a sample image that reproduces the issue you are experiencing with PVRTexTool? I will analyse it and report to the Tools Team.

Best regards,
Alejandro

I can’t seem to attach files since I’m a new account. Here’s the file on a OneDrive.

Hi karoliso,

Thanks for providing the image.

I tried to reproduce the error you’re experiencing but I haven’t managed to. After opening the sample image with PVRTexTool 2021 R1 (version 21.1@5986312) I tried to save the image to different formats (.png, .bmp, .jpg, .tga, .hdr) but I didn’t get any errors. I also encoded it to a couple of formats with alpha channel with no error.

Could you please describe the steps to reproduce the error? for instance, FileSave Image…Save as type=jpg

Best regards and many thanks,
Alejandro

Apologies I should have clarified - I am using PVRTexToolCLI. I use the following commands:

-l -flip y,flag -r WIDTH,HEIGHT -rfilter cubic -m -mfilter cubic -ics lRGB -f TEXTURE_FORMAT,UBN,lRGB -shh

Thanks karoliso,

Could you please write the exact and whole command (including the image file name) that is giving you errors? i.e., PVRTexToolCLI.exe -param1 value -param2 value etc.

Best regards and many thanks,
Alejandro

PVRTexToolCLI.x86_64.exe -i "C:/tests/test_01/tex_sample_01.tga" -o "C:/tests/test_01_temp/tex_sample_01.pvr" -l -flip y,flag -r 256,256 -rfilter cubic -m -mfilter cubic -ics lRGB -f ETC1,UBN,lRGB -shh

Hi karoliso,

Thanks for the detailed command line example.

I was able to reproduce the issue you’re experiencing. It is due to the .tga file you are using lacking an alpha channel. Since 21.1 PVRTexToolCLI expects the input image to have an alpha channel to perform alpha bleeding when using the -l parameter. To solve this issue you can either remove the -l parameter or transcode your .tga image from RGB to RGBA.

Let us know if you have any other issues.

Best regards and many thanks,
Alejandro

1 Like

I rely on PVRTexToolCLI in my pipeline to handle all image file processing. Ideally I shouldn’t need to identify the texture properties prior to sending it to PVRTexToolCLI. Can the transcoding be done in PVRTexToolCLI?

Hi karoliso,

Yes, you can use the command below to generate an RGBA version of the image and then process it as usual.

PVRTexToolCLI -i tex_sample_01.tga -f r8g8b8a8 -d tex_sample_01_rgba.tga

Best regards,
Alejandro

© Imagination Technologies Limited. All rights reserved.
Privacy PolicyTerms & ConditionsTrademarksCookies