Resolution limit on images?

Hi, currently using Corona in a Crossplatform course in University.

We are trying to make a side-scroller game and figured we would make the level in a long image, however the image appears all white on the simulator under Windows 7 and stretched in a very weird fashion on OSX.

It’s a 960x12480 .png at 248kb.

Are there some form of resolution restrictions?
We’ve managed to stretch a 960x2000 to 12480(width) inside the code though, but that looks terrible :stuck_out_tongue:

Any help is appreciated
Cheers! [import]uid: 129637 topic_id: 22724 reply_id: 322724[/import]

You would probably do better to cut it up into smaller images and tile them. [import]uid: 10389 topic_id: 22724 reply_id: 90708[/import]

https://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html

OpenGL ES 2.0 on the PowerVR SGX
Limits

The maximum 2D or cube map texture size is 2048 x 2048. This is also the maximum renderbuffer size and viewport size. [import]uid: 10389 topic_id: 22724 reply_id: 90710[/import]

Ah nice, i have been trying to confirm that for a while now.
Different approach needed then :stuck_out_tongue:

Thanks a lot! [import]uid: 129637 topic_id: 22724 reply_id: 90718[/import]

+1 to tiling some smaller images; the difference is texture memory will be well worth it :slight_smile: [import]uid: 52491 topic_id: 22724 reply_id: 90887[/import]