English 中文(简体)
开放利比里亚经济学院,你如何使接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳、接纳
原标题:OpenGL ES, how do you render PVR textures?

Edit:ok, sorry,我有简单的方案拟订错误,是否有办法删除这一问题?

我有一些压缩的文本,它们是PVR的档案,但我似乎无法在我的iPad申请中使用开放式的GES。

I can draw PNG files just fine, I know the PVR files are being loaded correctly. Are there some special OpenGL draw functions that I need to be calling to draw the PVR files?

Edit:我获得的是一个白色形象。

感谢任何信息。

问题回答

借助PVRTC的案文应当与任何其他文本格式完全相同,更可能看到你的装载代码是问题。 在装货时是否报告了任何GL错误?

装载未压缩文本的重大差别如下:

glCompressedTexImage2D(GL_TEXTURE_2D, level, GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG, width, height, 0, size, data);

glCompressedTexImage2D(GL_TEXTURE_2D, level, GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG, width, height, 0, size, data);

确保你不会重新制定GL过滤模式,以便在案文中不再使用MIP地图。

Searching f或 PVRTC in Apple s docs brings up a decent summary of how to use these textures.

在上载后,PVR的文本与其他格式并无不同。 您是否愿意在数据上载时跳出ski头,或者在光压缩TexImage2D时使用错误参数? 甚至有可能,压缩工具由于错误的规模或肤色格式而无法转换图像。





相关问题
OpenGL ES iPhone - drawing anti aliased lines

Normally, you d use something like: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); glLineWidth(2.0f); glVertexPointer(2, GL_FLOAT, 0, points); ...

iPhone: Quartz2d vs. OpenGL ES

OK, I m still brand new to iPhone development. I have a free game on the app store, Winner Pong, but it s just a Pong clone (who would ve guessed) that uses the standard UIImageViews for the sprites. ...

GLPaint with white background

I m trying draw on a white background by reverse engineering GLPaint. I ve gone through every combination of kSaturation, kLuminosity and glBlendFunc, AND just about every combination I can think of ...

OpenGL ES - how to keep some object at a fixed size?

I m working on a little game in OpenGL ES. In the background, there is a world/map. The map is just a large texture. Zoom/pinch/pan is used to move around. And I m using glOrthof (left, right, bottom,...

Any free polygon library for the iPhone?

I need a library that can manage polygon modeling and basic transformation like rotating and translating. I d rather not redevelop everything from scratch Thanks

热门标签