Using Large Background Graphic

I’m trying to figure out if it’s possible to use large backgrounds in a game I’m building in corona. I am trying to building a maze game that has really detailed graphics in the x and y axis. I’m really trying to avoid the “tiled” look with repeating graphics and I’ve read that the largest graphic supported is 2000x2000. Is there another way to do this that I’m not thinking of?

Thanks!

Chad

You can use an image up to the devices maxTextureSize (https://docs.coronalabs.com/api/library/system/getInfo.html#maxtexturesize).

Some older devices this could be as low as 1024x1024. The simulator will give you some insanely large value (16K x 16K or so) because the desktop’s memory and GPU can support it. But the highest I’ve seen from a mobile device is 8192x8192. But you can’t count on having that on every device.

Because of the wide variety of maxTextureSize’s hit on Android, we will let you load a image up to maxTextureSize, but we then internally scale it to 2048x2048.

Realistically you should not exceed 2048x2048 for your 1x assets. That would allow your @2x to be 4096x4096 and your @4x assets to be 8192x8192.

Rob

The “tiled” look you are talking about is related to reusing the tiles.

You can simply just slice your big image into maller ones and reassamble them in your app (no “tiled” look).

You can use an image up to the devices maxTextureSize (https://docs.coronalabs.com/api/library/system/getInfo.html#maxtexturesize).

Some older devices this could be as low as 1024x1024. The simulator will give you some insanely large value (16K x 16K or so) because the desktop’s memory and GPU can support it. But the highest I’ve seen from a mobile device is 8192x8192. But you can’t count on having that on every device.

Because of the wide variety of maxTextureSize’s hit on Android, we will let you load a image up to maxTextureSize, but we then internally scale it to 2048x2048.

Realistically you should not exceed 2048x2048 for your 1x assets. That would allow your @2x to be 4096x4096 and your @4x assets to be 8192x8192.

Rob

The “tiled” look you are talking about is related to reusing the tiles.

You can simply just slice your big image into maller ones and reassamble them in your app (no “tiled” look).