Author Topic: how to transition transparent?  (Read 1449 times)

Offline Uncle Ray

  • int
  • **
  • Posts: 81
    • View Profile
how to transition transparent?
« on: October 08, 2014, 07:11:42 am »
SOLVED THX EGO



this is what i want!











this is what my project.
the problem is the texture have many tanspanrent value, but in jpct only have one single transparent value,how can i to achieve a transition
effect.
here is the texture
:




« Last Edit: October 20, 2014, 02:51:26 pm by Uncle Ray »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: how to transition transparent?
« Reply #1 on: October 08, 2014, 08:10:09 am »
You have to make the texture loader use the alpha channel from the file: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#Texture(java.io.InputStream, boolean)