Got black texture when using mulit textures

Started by kiffa, February 13, 2014, 01:14:55 PM

Previous topic - Next topic

kiffa

code:

//first use 1 texture
car.setTexture("car_1");

//after a while, use 2 to blending
int id = TextureManager.getInstance().getTextureID("car_1");
int id2 = TextureManager.getInstance().getTextureID("car_2");
TextureInfo info = new TextureInfo(id);
info.add(id2, TextureInfo.MODE_MODULATE);
car.setTexture(info);


EgonOlsen

#1
Maybe one of the textures is black?

Edit: Even if it's not black by itself, it might be rendered in black if you using OpenGL ES 2.0 and one of the textures is not square.