www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: MichaelJPCT on August 14, 2016, 02:12:20 pm

Title: alpha channel in image file?
Post by: MichaelJPCT on August 14, 2016, 02:12:20 pm
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?
Title: Re: alpha channel in image file?
Post by: MichaelJPCT on August 14, 2016, 02:25:49 pm
ok i found out i need to use a constructor of Texture() that has useAlpha parameter , it works now.