I use two triangle to form a square, and use a serial of png picture to do frame animation.
when animating, some animation make the object edge blinks. I dont know what's the cause .
float[] coord_menu = {
0.0f, 0.0f, 0.0f,
0.0f,10.0f, 0.0f,
10.0f,10.0f, 0.0f,
10.0f, 0.0f, 0.0f,
};
float[] uvs = {
0.0f, 0.0f,
0.0f,1.0f,
1.0f,1.0f,
1.0f,0.0f,
};
int[] indices = {
0,1,2,
2,3,0,
};
Object3D menu = new Object3D(coord_menu,uvs,indices,TextureManager.TEXTURE_NOTFOUND);
I use menu.setTexture() to set a series of texture to make the menu animating, when disable
transparent, the menu's edge blinks, with transparent enable, the blinking exist also.