在 OPENGL 2.0 Android 中使用非常大的位图纹理

发布于 2024-12-27 09:34:13 字数 115 浏览 1 评论 0原文

我有一个使用 OPENGLES2.0 查看可缩放图像的应用程序,并且想要渲染大纹理 - 1920x2560 和更大 - 并在尝试加载它们时出现 GL_INVALID_VALUE 错误。

我该怎么做呢?

I have an application which views zoomable images using OPENGLES2.0, and want to render large textures - 1920x2560 and larger - and get GL_INVALID_VALUE errors when trying to load them.

How do I go about doing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那片花海 2025-01-03 09:34:14

移动设备通常无法支持大于 2048 像素(宽度或高度)的纹理。

例如,IPAD 等 IOS 设备无法支持大于 2048x2048 的纹理。

我在测试 PATRIA 3D 引擎的大多数 Android 设备上发现了相同的限制,因此我只能建议您保持在这个限制以下。

我建议你仔细阅读这个OpenGL官方文档
http://www.opengl.org/resources/faq/technical/texture.htm

特别指出:

21.130 我的设备将渲染硬件加速的纹理贴图的最大尺寸是多少?

Mobile devices often cannot support textures bigger than 2048 pixels (width or height).

IOS devices such as IPAD for instance cannot support textures bigger than 2048x2048.

I have found the same limit on most of the Android devices where I have tested my PATRIA 3D engine hence I can only advice you to stay under this limit.

I suggest you to read carefully this official OpenGL document
http://www.opengl.org/resources/faq/technical/texture.htm

In particular point:

21.130 What's the maximum size texture map my device will render hardware accelerated?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文