纹理没有渲染2.3.3 [英] Textures not rendering in 2.3.3

查看:164
本文介绍了纹理没有渲染2.3.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天碰到了几分紧张的问题,同时wokring我的游戏为Android和希望有人会有一些见解。 我的朋友已经用他的Droid难以置信的CyanogenMod根并安装姜饼2.3.3。我试着在游戏启动了他的设备上,它似乎在运行,但一切是白色的。作为我的glClear是黑色的,我假设,这意味着位图和/或纹理不加载正确。我试图把我的纹理所有不同的DPI文件夹,试图最大API级别设置为8升级Froyo,试图在SDK中的项目平台设置为2.3.3,但我似乎没有任何影响它在任何方法。

I ran into somewhat of a stressful issue today while wokring on my game for android and was hoping someone would have some insight. My friend has used cyanogenmod on his Droid incredible to root and install gingerbread 2.3.3. I tried booting up the game on his device and it seems to be running but everything is white. Being as my glClear is black, I'm assuming that this means the bitmaps and/or textures are not loading correctly. I've tried putting my textures in all of the different dpi folders, tried setting the max API level to 8 for froyo, tried setting the platform for the project in the sdk to 2.3.3 but nothing I do seems to affect it in any way.

我完全能接受这个事实,他用一个非官方固件他的电话本不够格任何深入的搜索,但你们认为它是真正做的固件?还是有别的东西,我可以尝试得到它的工作。

I'm perfectly capable of accepting that the fact that he's using an unofficial firmware for his phone disqualifies this from any indepth search but do you guys think it's really to do with the firmware? Or is there something else I can try to get it to work.

推荐答案

(从注释移到一个答案)

(Moved from comments to an answer)

这可能完全是纹理大小。每个装置中的GPU是不同的,并且将支持的OpenGL不同的扩展。尝试用高度和宽度被限制为64,128,256,512或1024,我敢打赌,它会奏效。我的三星的Captivate不能运行示例应用程序之一,因为它是一个192×192的图像。有一次,我修改了它使用256×256的纹理,它的工作。

It may absolutely be the texture size. The GPU in each device is different and will support different extensions of OpenGL. Try with a height and width that are limited to 64, 128, 256, 512 or 1024 and I'll bet it will work. My Samsung Captivate couldn't run one of the sample apps because it was a 192 x 192 image. Once I modified it to use a 256 X 256 texture, it worked.

现在,我重新阅读,这听起来像你们有相同的硬件...但它仍然可能是固件搞砸OpenGL扩展(也许...),所以肯定会给更多的标准尺寸一杆

Now I'm re-reading and it sounds like you guys have the same hardware... however it's still possible that the firmware messed up the OpenGL extensions (maybe...) so definitely give the more standard sizes a shot.

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

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