Building for Retina iPad 3

I (temporarily) have access to an iPhone 3GS, iPad 2, iPhone 4S and New iPad and I’m trying to get my game to build with the correct scaling factors for them all, as I no longer have the option of getting the graphics re-done for the New iPad…

My config.lua is this:
[lua]application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["-x2"] = 2,
},
},
}[/lua]

I have images sized for the iPhone 3GS and iPad 2 screen sizes and these work just fine for iPhone 4/4S…

The problem is that I can’t find the “magic” number for getting the build to produce usable image sizes for all four devices. Either the game looks too small on the iPad 2 and iPhone 4S or it’s 4 times too large on the New iPad.

What am I doing wrong? Is it even possible? I thought I’d just have to rebuild and redeploy for it to get scaled correctly on the New iPad???

I really hope someone can help!

Thanks,

Matt. [import]uid: 8271 topic_id: 23842 reply_id: 323842[/import]

Hey, we actually have a blog post on this :slight_smile:

http://blog.anscamobile.com/2012/03/developing-for-ipad-retina-display/

That should help.

Peach [import]uid: 52491 topic_id: 23842 reply_id: 96028[/import]

Hey, yeah, I’ve read it cover-to-cover twice and still can’t figure out what I’m missing. Do I have to make duplicate entries? Perhaps I’m rushing it, but scaling for 4 device sizes doesn’t seem to be happening! [import]uid: 8271 topic_id: 23842 reply_id: 96045[/import]

Did you try including @2x and @4x? The above doesn’t use @4x and as best I can tell that is what you want to be using.

I haven’t built for the new iPad yet but as best I can tell that’s what you want to do.

With the code you’re showing there you mention the images look far too large on the standard iPad, is that right? If so, what size are your @2x images? Are they actually 2 times the size of standard, or no? [import]uid: 52491 topic_id: 23842 reply_id: 96050[/import]

I don’t have any images with @4 suffixes so I can’t use that, can I? Or would it default to the next largest image and scale it up?

I sized all my fullscreen images for the iPad and iPhone in the original build. Now I just need to have those scaled up in Corona for iPad3.

If I don’t provide images with “@4” but put the entry in the config.lua, what would happen? You can probably guess that I won’t be able to test that for a few hours… [import]uid: 8271 topic_id: 23842 reply_id: 96052[/import]

Uh well no, you would need the images there to use :wink:

So OK, no images - You mentioned it scaling up to be 4x too large on the new iPad, that sounds like the issues people were having on release day.

What build of Corona are you currently using? I feel like we had a few threads on this. [import]uid: 52491 topic_id: 23842 reply_id: 96240[/import]

Yup, you’re right - I believe I’m using the 704a build but I’ll redownload and try again. I’m going to read through all the posts I can find again. [import]uid: 8271 topic_id: 23842 reply_id: 96260[/import]

Hey there,

I am having the same issue and wondering if this is what was fixed in the 704b release? My app was rejected because it wasn’t compatible with the iPad. I tested on an iPad 1 and it worked fine so this is probably an issue with the iPad 3. The screenshot Apple supplied showed that the screen was zoomed in and was only able to fit 1/4 of the actual screen. I built this version on Xcode 4.2 with 704a.

Since then I have installed xcode 4.3 and installed 704b and re-built and sent to Apple, however I don’t have the new iPad so I can’t test this for myself. Will this fix the issue with the image scaled so large?

Here is the what the screenshot should look like:
http://appnews.30belowstudios.com/Toy1.png

And here is the screenshot Apple sent me when they rejected my app:
http://appnews.30belowstudios.com/rejected.png [import]uid: 31262 topic_id: 23842 reply_id: 99300[/import]

@aaaron, yup, 704B should fix the issue.

Good luck!

Naomi [import]uid: 67217 topic_id: 23842 reply_id: 99304[/import]

Awesome thanks again Naomi! [import]uid: 31262 topic_id: 23842 reply_id: 99305[/import]