将纹理应用于线框 [英] Applying texturing to wire frame

查看:86
本文介绍了将纹理应用于线框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Opengl绘制了一个wireSphere。然后我添加了纹理。它显示在这台机器上。但我没有在另一台机器上显示纹理。它仅显示没有纹理的线球。我无法想象原因。请帮助我..

I drew a wireSphere using Opengl.Then I added texture to it. It show in this machine. But I don't show the texture in another machine. It show only the wire sphere without texturing. I can't imagine the reason.Please help me..

推荐答案

纹理问题通常是由宽度/高度不是2的幂的纹理引起的 - 特别是在OpenGL中。即便在现代硬件上,我也亲身体验过这一点。尝试纹理大小,如1024x1024!
Texturing problems are often caused by textures with a width/height that is not a power of 2 - especially in OpenGL. I experienced this myself, even on modern hardware. Try a texture size such as 1024x1024!


这篇关于将纹理应用于线框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆