Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the maximum texture size for different phones?

I'm trying to find out the maximum texture size for the original Motorola Droid. I believe the G1 has a maximum texture size of 512, but it would be nice if there was a more official way I could find out so I can build a proper tile system.

like image 495
jfisk Avatar asked Dec 24 '10 18:12

jfisk


People also ask

What is maximum texture size?

After some research we found out that it had to do with the devices support of maximum texture sizes. The devices in question (iPhone 4 and older android phones) only supported a maximum texture size of 2048 x 2048, while the newer devices had a maximum texture size support of 4096 x 4096.

What is a texture size?

Texture sizes are measured in pixels indicating the texture's length and width. The larger the pixel height and width values, the larger the texture. SketchUp, by default, supports textures no larger than 1024 n 1024 pixels.


2 Answers

You can request the max texture size using glGetIntegerv:

int[] maxTextureSize = new int[1];
gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);
Log.i("glinfo", "Max texture size = " + maxTextureSize[0]);
like image 89
svdree Avatar answered Oct 17 '22 16:10

svdree


Also check out http://www.glbenchmark.com/ - it has an extensive database of OpenGL environment and performance details for mobile devices

like image 28
ryanm Avatar answered Oct 17 '22 17:10

ryanm