By swam1991
on Mon, 10/08/2012 - 05:57
hi,I use the same code and launch on two devices (one is android smart phone, the other is android tablet PC)I load texture from website (2D image)on the smartphone ,it works correct,the texture is renderedbut on the tablet PC it shows black pictureI don't know why and I can't find any error LOG or exceptionDoes anyone know what should I do? please help methanks.
Texture is black when rendering
What is the size of the image you are loading?
Texture is black when rendering
thanks for your reply,
I will try it
Texture is black when rendering
it may be that you haven't enabled lighting for open gl es.
try enabling lighting with a call to glEnable;
glEnable(GL_LIGHTING);
Texture is black when rendering
Thanks lashman3 for this note.
However, be aware that glEnable(GL_LIGHTING) can only be used with OpenGL ES 1.1, but not on OpenGL ES 2.0, as in the latter case lighting is fully controlled at Shader level (and GL_LIGHTING is not supported).
Hi! I just solved this
Hi! I just solved this problem and I'd like to share my methods with you. The key problem is not about the texture size( it doesn't need to be size of power of 2).