iPhone retina display problem
by Samuel Cartwright · in iTorque 2D · 06/21/2012 (4:37 pm) · 7 replies
I'm not sure if this is something I'm doing wrong all not.
My game works fine running on the iPhone simulator, but when I switch the simulator over to use the Retina display, all I get is a black screen. The game is still running because I can hear the music.
I read the documentation saying that if I put '_hd' after the image names then those images will be loaded for the retina display, but it reads to me like this is something optional, and if the hd images are missing then the engine just loads the default images.
Is there something I need to do to enable retina display on my game?
My game works fine running on the iPhone simulator, but when I switch the simulator over to use the Retina display, all I get is a black screen. The game is still running because I can hear the music.
I read the documentation saying that if I put '_hd' after the image names then those images will be loaded for the retina display, but it reads to me like this is something optional, and if the hd images are missing then the engine just loads the default images.
Is there something I need to do to enable retina display on my game?
#2
06/22/2012 (1:55 am)
AFAIK there isn't a fix for the GUIs - you need to write code that re-positions the GUIs based on the device type and resolution.
#3
06/22/2012 (12:12 pm)
You can also set the horizontal and vertical sizing of your GUIs to be relative. That will make them stay in their relative locations when the canvas is resized.
#4
www.garagegames.com/community/forums/viewthread/130137
06/22/2012 (2:58 pm)
Michael have you tried that? Does not work... Relative skews the guis and stretches them unporportionally or just plain does not hold the values so it gui element stay in their original spot.. we had to stop using relative completely. I posted a thread asking for help regarding using the GUI for exactly this purpose and you told me it was busted.www.garagegames.com/community/forums/viewthread/130137
#5
It definitely looks good between iPhone non-retina simulator and iPhone 4 retina device.
06/23/2012 (9:47 pm)
Really? I'm using relative for everything and it's working just peachy for me. I had to do a little font size magic in my profiles.cs but other than that it mostly just works. It definitely looks good between iPhone non-retina simulator and iPhone 4 retina device.
#6
06/24/2012 (12:08 pm)
Strange the differences between GUI elements with the Iphone and and Ipad when set to relative were giving us nightmares. The Buttons did not scale correctly, they were either not in the right place or that plain just did not show up on screen when resized.
#7
iPhone/Retina is easy, iPhone/Retina/iPad needs extra work.
06/25/2012 (4:38 am)
It's because there is no direct correlation between aspect ratio on the iPad and aspect ratio on the iPhone/Retina.iPhone/Retina is easy, iPhone/Retina/iPad needs extra work.
Torque Owner Samuel Cartwright
Samuel Cartwright
So now the graphics appear ok now, but I'm using .gui files for all my menus. These GUIs are appearing in the normal (320x480) resolution and at the normal screen positions for this resolution, so the GUIs are neither scaled or repositioned for the retina display.
Is there a fix for GUIs too?