Author Topic: Semitransparent texture not working anymore  (Read 1882 times)

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Semitransparent texture not working anymore
« 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]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Semitransparent texture not working anymore
« Reply #1 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.

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: Semitransparent texture not working anymore
« Reply #2 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 ....