Semitransparent texture not working anymore

Started by Dinin, July 25, 2012, 08:11:10 AM

Previous topic - Next topic

Dinin

Hi !

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

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]

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