jPCT-AE - a 3d engine for Android > Support

Semitransparent texture not working anymore

(1/1)

Dinin:
Hi !

I've a semitransparent texture (attachment) and i'm setting it on a Plane.

--- Code: ---Object3D testplane = Primitives.getPlane(1, 50);
Manager.LoadTexture(context, "tex_laser003");
testplane.setTexture("tex_laser003");
testplane.setCulling(false);
testplane.setTransparency(10);
world.addObject(testplane);

--- End code ---
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]

EgonOlsen:
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.

Dinin:
Argh  :-[ .... Yes that's it, i forgot that i set useAlpha = false to test if i can save memory ....
Many Thanks ....

Navigation

[0] Message Index

Go to full version