www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Uncle Ray on October 08, 2014, 07:11:42 am

Title: how to transition transparent?
Post by: Uncle Ray on October 08, 2014, 07:11:42 am
SOLVED THX EGO
(http://i42.photobucket.com/albums/e308/409544041/QQ56FE724720141008124838_zpsa807711d.jpg)


this is what i want!






(http://i42.photobucket.com/albums/e308/409544041/QQ56FE724720141008125945_zps3dcee685.jpg)




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
:
(http://i42.photobucket.com/albums/e308/409544041/jet1_zps16a600f3.png)



Title: Re: how to transition transparent?
Post by: EgonOlsen 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) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#Texture(java.io.InputStream, boolean))