16
Support / Re: Texture artifact
« on: November 20, 2011, 06:14:49 pm »
I guess it was my fault... when useing texture with alpha chanel, "colored" pixels must not touch the texture's edges!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
//loading texture
TextureManager.getInstance().addTexture("panda", new Texture(getBitmapFromAssetsARGB8888(256,256,"gfx/alpha.png", AppContext));
//seting up 3dobject
planePanda = Primitives.getPlane(1, 10);
planePanda.setTexture("panda");
planePanda.setTransparency(3); //not sure how it works
planePanda.build();
world.addObject(planePanda);