What are the usual troubleshooting steps for OpenGL textures not showing?

前端 未结 6 510
南笙
南笙 2020-12-10 12:53

After making a few changes in my application, my textures are no longer showing. So far I\'ve checked the following:

  • The camera direction hasn\'t changed.
6条回答
  •  时光取名叫无心
    2020-12-10 13:07

    A few more things to check:

    • glColorMaterial(...); To make sure colors aren't overwriting the texture
    • glEnable/glDisable(GL_LIGHTING); Sometimes lighting can wash out the texture
    • glDisable(GL_BLEND); Make sure that you're not blending the texture out
    • Make sure the texture coordinates are set properly.

提交回复
热议问题