Author Topic: Fullscreen image distortion  (Read 1953 times)

rhalferty

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Fullscreen image distortion
« on: January 20, 2016, 10:14:26 AM »
Unity 5.2.1
NGUI 3.9.4

I am having issues with a full screen background image becoming distorted when I push my build to either the ios simulator or an actual iPad device. The image is 800x600. I've tried a flexible screen and constrained on mobile, both have the same issue. Image attached. The top of the screen gets stretched as opposed to flexing the whole image. It works fine in the Unity window. I get a similar issue with a UI Table and a set of sprites.

Any help or thoughts would be appreciated.
« Last Edit: January 20, 2016, 10:43:15 AM by rhalferty »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fullscreen image distortion
« Reply #1 on: January 20, 2016, 10:19:47 AM »
If you've chosen the image to be compressed, which is the default Unity option, then Unity will force its dimensions to be power-of-two. 800x600 is not, so it will make it 1024x512, or maybe even 1024x1024, depending on the compression format. Either turn off compression, or use power-of-two texture sizes.

rhalferty

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Fullscreen image distortion
« Reply #2 on: January 20, 2016, 01:28:51 PM »
I can confirm the power of 2 being a complication. I edited the image to be 1024x1024 and it does not distort any longer.

The other solution I've found is related to the mip mapping. When turned off this is no longer an issue.