31
Support / object edge blinking
« on: February 07, 2012, 11:22:56 am »
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 .
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.
when animating, some animation make the object edge blinks. I dont know what's the cause .
Code: [Select]
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.