"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Texture is black when rendering

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. 

it may be that you haven't enabled lighting for open gl es.

try enabling lighting with a call to glEnable;

glEnable(GL_LIGHTING);

 

 

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).

 

 

CarterBao

Sat, 08/13/2016 - 10:08

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).