saarraz1
saarraz1

Reputation: 3029

Using very large bitmap textures with OPENGL 2.0 Android

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?

Upvotes: 1

Views: 1254

Answers (1)

Maurizio Benedetti
Maurizio Benedetti

Reputation: 3577

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?

Upvotes: 1

Related Questions