Hello Guest

Author Topic: Multiple Resolutions?  (Read 11330 times)

nikolic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 48
    • View Profile
Multiple Resolutions?
« on: February 08, 2012, 10:25:49 pm »
I've been using 2D Toolkit for few months and I'm very happy with its features. At the moment, I'm primarily interested in Android.

If I set Target Height to 480 and Target Ortho Size to 240, it works perfectly in landscape orientation with 800x480 and 854x480 screens. If I run the game on 1280x800 device, the sprites get scaled up. This is expected behavior and that's fine.

I was wondering how you support multiple resolutions with 2D Toolkit in order to achieve pixel perfect rendering across multiple resolutions on Android?
Do you create multiple textures packs and sprite collections to support lower and higher screen heights available?

Thanks,
Marko
« Last Edit: February 08, 2012, 10:39:02 pm by nikolic »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multiple Resolutions?
« Reply #1 on: February 11, 2012, 11:56:44 pm »
For pixel perfect rendering there are two parts to the equation, one is higher resolution texture packs and such, and the other is to get the sprites to draw pixel perfect. I believe I have a good solution for the latter, and you can check it out in this thread before it gets merged to the trunk version.
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,52.msg92.html

For higher resolution texture packs, the ideal solution is to use asset bundles, but that requires Unity Pro. I thought of a few workarounds for Unity Free / Basic, but I have yet to come across something good enough.

Cheers,
unikron

nikolic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Multiple Resolutions?
« Reply #2 on: February 12, 2012, 08:29:53 am »
The thread link http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,52.msg92.html is not working for me:



Thanks,
Marko

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multiple Resolutions?
« Reply #3 on: February 12, 2012, 06:32:26 pm »
Hi,

Its in the private support section for registered users. Please register your copy as shown here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html

Cheers,
unikron