TTK-Bandit@Posted: Mon Nov 12, 2007 11:06 am :
I use uploadimage to get a generated image drawn into the hud, but I have problems getting the alpha to work properly.
even though the shader has set blend blend, the alpha is completely ignored.
does anyone know how to fix this ? :|



parsonsbear@Posted: Mon Nov 12, 2007 12:39 pm :
maybe your image's alpha channel isn't correct- can you use makealpha with the shader just to check that it's possible?



TTK-Bandit@Posted: Mon Nov 12, 2007 12:50 pm :
the alpha channel is correct, the image works if I use it normally, the problem only exist when I use uploadimage.



zl1corvette@Posted: Wed Dec 12, 2007 3:29 am :
For D3 you need an actual image file with an alpha channel at imageName otherwise it won't work. Then you can just upload whatever you want over write the image.



TTK-Bandit@Posted: Mon Nov 12, 2007 11:06 am :
I use uploadimage to get a generated image drawn into the hud, but I have problems getting the alpha to work properly.
even though the shader has set blend blend, the alpha is completely ignored.
does anyone know how to fix this ? :|



parsonsbear@Posted: Mon Nov 12, 2007 12:39 pm :
maybe your image's alpha channel isn't correct- can you use makealpha with the shader just to check that it's possible?



TTK-Bandit@Posted: Mon Nov 12, 2007 12:50 pm :
the alpha channel is correct, the image works if I use it normally, the problem only exist when I use uploadimage.



zl1corvette@Posted: Wed Dec 12, 2007 3:29 am :
For D3 you need an actual image file with an alpha channel at imageName otherwise it won't work. Then you can just upload whatever you want over write the image.



TTK-Bandit@Posted: Thu Dec 20, 2007 4:26 pm :
does not work :(



zl1corvette@Posted: Wed Dec 26, 2007 4:50 am :
Try a listImages in the console and see what format the image is loaded as. If it's rgb or dxt1 I believe there needs to be an 'A' at the end of the format to indicate an alpha channel. Dxt3&5 always have the alpha channel IIRC.