在OpenGL ES 2.0在Android上黑色文物 [英] Black Artifacts on Android in OpenGL ES 2
问题描述
我有一个在iOS,Android的运行一个OpenGL ES 2 code碱基,并在PC上通过的PowerVR仿真库。
I have an OpenGL ES 2 code base that runs on iOS, Android, and on PC via the PowerVR emulation libraries.
当我运行在LG擎天柱摹LGE971这code,我看到我的模型黑色工件:
When I run this code on an LG Optimus G LGE971, I see black artifacts on my model:
http://imageshack.us/photo/my-images/594 /renderartifacts.png/
我的第一反应是,近裁剪平面可能是问题,但由于这些文物仅出现在选择的设备,我不认为这是问题。什么导致此任何其他的想法?
My first reaction was that the near clipping plane might be the issue, but because these artifacts appear on only select devices, I do not believe that is the issue. Any other ideas on what might be causing this?
此外,这不是很好捕获在上面的图片,但文物是不是静态的 - 他们走动作为模型旋转等
Also, this isn't captured well in the above image, but the artifacts are not static -- they move around as the model rotates, etc.
推荐答案
该问题已得到修复。我用固定的问题
The issue has been fixed. I fixed the issue by using
glTexImage2D()
与空的缓冲区,当我建立了我的mipmap水平,然后用
with NULL for the buffer when I set up my mipmap levels, and then using
glTexSubImage2D()
上传纹理数据到每个级别时
when uploading the texture data into each level.
这篇关于在OpenGL ES 2.0在Android上黑色文物的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!