Hello Guest

Author Topic: Fit Height - Which resolution?  (Read 4626 times)

wagenheimer

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
Fit Height - Which resolution?
« on: July 08, 2014, 05:26:54 pm »
I'm using tk2dCamera with Fit Height Override!

I'm using a tk2dSprite as a Background. My question is :

I want to support alll Iphone/Ipad/Windows and Android Tablets resolutions. I keep the usable area of my background to 4x3 proportion so I will not have any problem, with FitHeight it will cut out the borders which are not visible. My question is :

Which resolution (proportion and pixels) should I create my backgrounds to fit most of available devices (and avoid black borders)? Anybody have an advice?
« Last Edit: July 08, 2014, 05:30:14 pm by wagenheimer »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Fit Height - Which resolution?
« Reply #1 on: July 08, 2014, 07:44:24 pm »
If you want to keep the background to 4:3, you WILL end up with black bars as 16:9 is wider than 4:3, and if you fit height you will end up with black bars on either side. The solution is to pick a height for your background, eg. 768, then work out the largest width for all the aspect ratios you want to support. Eg. for 16:9 the required width will be 768 * 16 / 9 = 1366 rounded up. With a 1366x768 background, you're probably not going to get bars on most popular aspect ratios, but you will need to work this out for yourself.