Author Topic: Alpha channel on texture does not work  (Read 1749 times)

Offline Yerst

  • byte
  • *
  • Posts: 38
    • View Profile
Alpha channel on texture does not work
« on: July 16, 2013, 07:08:10 pm »
Hey!
I'm trying to load a 100% transparent .png image, but in the game it's black, not transparent.
Here is what i'm using to load the texture:
Code: [Select]
tm.addTexture("earth_clouds", new Texture(this.context.getResources().openRawResource(R.raw.earth_cloudss),true));

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Alpha channel on texture does not work
« Reply #1 on: July 16, 2013, 07:09:48 pm »
It's only transparent on transparent objects...

Offline Yerst

  • byte
  • *
  • Posts: 38
    • View Profile
Re: Alpha channel on texture does not work
« Reply #2 on: July 16, 2013, 07:22:09 pm »
Thx, works fine now!
And sorry for the many questions :)