Author Topic: Strange Pixel-Offset (iOS, iPad retina)  (Read 1588 times)

th_reflekt

  • Guest
Strange Pixel-Offset (iOS, iPad retina)
« on: December 20, 2013, 05:50:37 AM »
Hello, i got a strange problem using NGUI 3.0.6 f7 designing a UI for iPad (2048x1536 resolution).
Some sprites i'm using have one pixel "offset". I'm using UIToggle, e.g. with one "background" sprite and a "checkmark" sprite. Both images have the same size, both sprites the same dimensions and positions and using "Extract Sprite" gives me the correct images. Starting the application in the editor, the UI is shown correctly, too. However, when running the application on the device both sprites do not overlap correctly.

I attached an image which should (hopefully) explain the effect. The white line on the left side of the UI element should not appear (and does not appear when i run the app in editor, only on the iPad).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange Pixel-Offset (iOS, iPad retina)
« Reply #1 on: December 20, 2013, 11:42:33 AM »
What are the settings of your UIRoot?

th_reflekt

  • Guest
Re: Strange Pixel-Offset (iOS, iPad retina)
« Reply #2 on: January 07, 2014, 03:02:21 AM »
Hey, sorry for the late response (i was on vacation). The settings are:
Scaling Style: PixelPerfect
Minimum Height: 1536
Maximum Height: 1536

The app is supposed to run only on one specific iPad, so there's just one resolution to care for.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange Pixel-Offset (iOS, iPad retina)
« Reply #3 on: January 07, 2014, 09:13:57 AM »
Update to the latest, and clear the padding values on the sprites.