Author Topic: alpha channel in image file?  (Read 1970 times)

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
alpha channel in image file?
« 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?

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: alpha channel in image file?
« Reply #1 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.