Multi-Image Size Limit?

Monkey Targets Forums/iOS/Multi-Image Size Limit?

CopperCircle(Posted 2011) [#1]
Hi, i am trying to use a large multi-image png 14880x480 on iso but the frames just draw as white? it works fine on HTML5 and also works if I reduce the image size to below 10%

Is there a limit? Thanks.


Uncle(Posted 2011) [#2]
I think I read that 2048 x 2048 is the max texture size for OpenGL ES, but there's not much stopping you have multiple 2048 x 2048 images (only memory limitations).


BigAnd(Posted 2011) [#3]
As Uncle says there is a limit. It can be as small as 1024x1024 on the old iphones so stick to that to be safe especially if you want it to work on the old hardware.


CopperCircle(Posted 2011) [#4]
Thanks, I was hoping Monkey would chop the image into smaller textures when using multi-image, i'll just have to use lots of images together.


Uncle(Posted 2011) [#5]
Just some more info. OpenGL ES 1.1 (3rd gen iOS devices and lower) have a texture limit of 1024 x 1024 and BigAnd said. Its a limitation on the hardware rather than OpenGL so it might not apply for other devices.

http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html#//apple_ref/doc/uid/TP40008793-CH106-SW3

and

http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html#//apple_ref/doc/uid/TP40008793-CH106-SW1


So I think 1024 x 1024 is the way to go if want to hit as many targets as possible.