www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Dinin on July 25, 2012, 08:11:10 am

Title: Semitransparent texture not working anymore
Post by: Dinin on July 25, 2012, 08:11:10 am
Hi !

I've a semitransparent texture (attachment) and i'm setting it on a Plane.
Code: [Select]
Object3D testplane = Primitives.getPlane(1, 50);
Manager.LoadTexture(context, "tex_laser003");
testplane.setTexture("tex_laser003");
testplane.setCulling(false);
testplane.setTransparency(10);
world.addObject(testplane);
But when rendered it shows like in attachment screen.jpg.

This did already work  (also tried in backup of my project and it worked already).
So can anyone tell me what i've done wrong or what i've changed so that this do not work anymore ?

Thx and Greets
Dinin


[attachment deleted by admin]
Title: Re: Semitransparent texture not working anymore
Post by: EgonOlsen on July 25, 2012, 08:13:27 am
You have you use the Texture-constructor that takes alpha into account. I can't tell from your code, because you are hiding the actual loading in that LoadTexture-method.
Title: Re: Semitransparent texture not working anymore
Post by: Dinin on July 25, 2012, 09:01:38 am
Argh  :-[ .... Yes that's it, i forgot that i set useAlpha = false to test if i can save memory ....
Many Thanks ....