简体   繁体   English

OpenGL 不渲染纹理

[英]OpenGL doesn't render textures

Yesterday my OpenGL Classes have started, and me and my classmates downloaded a project made by my teacher as a sample project to learn from, on their pc it worked perfectly but all I'm seeing is white, the objects are white and the ground is white, on other classmates their pc's the objects are rendered correctly.昨天我的 OpenGL 课程开始了,我和我的同学下载了我老师制作的一个项目作为示例项目来学习,在他们的电脑上它运行良好,但我看到的只是白色,物体是白色的,地面是白色,在其他同学的电脑上,对象渲染正确。

Does anyone know why it won't render the textures on my pc?有谁知道为什么它不会在我的电脑上渲染纹理?

I've tried a few things such as, turning my Intel Graphics card off and running it on my Nvidia card, and i've tried to turn my Nvidia card off to run it on my Intel but neither worked.我尝试了一些方法,例如关闭我的英特尔显卡并在我的 Nvidia 卡上运行它,我尝试关闭我的 Nvidia 卡以在我的英特尔上运行它,但都没有奏效。

My Nvidia card is a Nvidia Geforce 710M which supports OpenGL 4.5, and I have OpenGL version 4.5.我的 Nvidia 卡是支持 OpenGL 4.5 的 Nvidia Geforce 710M,我有 OpenGL 4.5 版。

I'm not getting any errors in the code.我在代码中没有收到任何错误。

I'am able to see shadows I've just tried a different project and only saw shadows, the rest was all white, as it was with the first project.我能够看到阴影我刚刚尝试了一个不同的项目,只看到了阴影,其余的都是白色的,就像第一个项目一样。

我再次重新安装了所需的库,然后重新启动了我的电脑,它起作用了 :D 谢谢你的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM