alpha channel in image file?

Started by MichaelJPCT, August 14, 2016, 02:12:20 PM

Previous topic - Next topic

MichaelJPCT

i have a texture which is supposed to act like a mask - some part see through, some part masked - think of 1-bit alpha.
i tried with setTransparencyMode(0) , the result is close, but in JPCT i have to use black color for the see-through part, which doesn't work for me - i need the see-through part to be blue, because there is a little edge area of the texture still visible.
i tried to use image file with transparency information - transparent png and 32-bit TGA. the png transparency doesn't work and tga can't be loaded.
what else can i try?

MichaelJPCT

ok i found out i need to use a constructor of Texture() that has useAlpha parameter , it works now.