Hello Guest

Author Topic: iOS 2048x2048 gets blurred  (Read 4629 times)

underdogs

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
iOS 2048x2048 gets blurred
« on: September 03, 2012, 02:44:20 pm »
Hi,

Im facing an issue where if the texture size gets to 2048x2048 all the sprites appear blurred.

Is there any way to solve this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: iOS 2048x2048 gets blurred
« Reply #1 on: September 03, 2012, 11:53:10 pm »
Is the max texture size (on the atlas texture) set to 2048 or higher?

underdogs

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: iOS 2048x2048 gets blurred
« Reply #2 on: September 04, 2012, 07:52:51 am »
Hi,

I am using a PNG image (1428x1022) padded with transparent pixels to make it POT (2048x1024) along with your runtime sprite example.

The .png  is renames as .bytes and loaded via Resources.Load("image") and the resulting Texture2D is passed to the RuntimeSprite.

The sprite gets created just fine, but the image appears blurred/degraded.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: iOS 2048x2048 gets blurred
« Reply #3 on: September 04, 2012, 06:01:09 pm »
Interesting.
It looks like Unity isn't loading it correctly.


Just to make sure we're talking about the same thing - you're loading it into a TextAsset, then getting bytes from this TextAsset and passing it to Texture2D.LoadImage? Add some debug code as soon as it loads in to see the dimensions of the image. It might be downscaling for some reason.