Author Topic: UIRoot & Switch SD to HD atlas  (Read 3363 times)

hong88

  • Guest
UIRoot & Switch SD to HD atlas
« on: November 05, 2013, 11:45:00 PM »
I'm planning to design my game for universal for iPhone & iPad. I getting more confused after read a lot of post under this forum.

Now my game settings are:
UIRoot = FixedSize.
Manual Height = 960 (for iPhone 4 portrait)

So, that means if I publish to iPad (non retina) (UIRoot the width will be 682.66 instead of 768 which have extra 42.67 on both left and right side.
This will be fine for me, because I use UIStretch to stretch background & fill up the empty space.

But consider the quality of my game, i consider to use SD & HD. This is the place that I really confusing maybe I not designer.

1. Should I ask the different size of png from my designer for different atlas? If yes, the SD for iPhone 4 retina with 100 x 100  sprite then what will be the size is HD ? If no, how my sprite will be scale or not scale? or the designer should give me the size png size with higher dpi?

2. The pixel setting on atlas on different aspect ratio.
For Portrait:
SD (iPhone 4 retina) : 1
HD (iPad non retina) : 960/1024 = 0.9375
UD (iPad retina): 960 / 2048 = 0.46875

Does the above setting is correct ?
But why when I'm switching the reference atlas and make pixel perfect on sprite the size of sprite will change?

Thanks if anyone can help coz I struggle this thing long time ago.

 






ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot & Switch SD to HD atlas
« Reply #1 on: November 06, 2013, 07:49:10 AM »
I don't recommend doing this. Pixel size is mainly for doubling or halving the sprite's logical dimensions. What you're doing is... well, kinda nitpicking. :P -- and it won't give you nice results.

Fixed size is indeed the easiest setting to use when developing UIs. It will keep everything the same proportions. Using anchors to glue elements to the corners or sides of the screen will also eliminate the "extra space" you mentioned.

Nicki can give you better advice here than I, but I'd suggest creating two layouts -- one for iPhone, and another for the iPad, and only two atlases -- HD and UD. Since the sprites in the UD atlas would be twice the size of those in the HD atlas, the pixel size scale setting is trivial, and any inconsistencies between iPhone and iPad would be addressed in having the different layouts.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UIRoot & Switch SD to HD atlas
« Reply #2 on: November 06, 2013, 07:57:50 AM »
I think we've covered most here http://www.tasharen.com/forum/index.php?topic=832

You shouldn't make assets for every resolution - that's overkill.