Author Topic: The border line blurring  (Read 4621 times)

shokinhan

  • Guest
The border line blurring
« on: November 20, 2012, 08:48:30 AM »
Some times the frame border are blurring, but when I add 1 pixel to the border, it will be distinct, and then I Make pixel perfect, it will be blurring again. Why ?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: The border line blurring
« Reply #1 on: November 20, 2012, 03:51:55 PM »
Select your UIRoot and hit Alt+Shift+P. This will pixel-perfect your entire UI.

shokinhan

  • Guest
Re: The border line blurring
« Reply #2 on: November 20, 2012, 10:07:27 PM »
If the border is distinct, when I press Alt + shift + P, it will change blurring again.

JRoch

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: The border line blurring
« Reply #3 on: November 20, 2012, 11:10:10 PM »
Does one of the panel/widgets not have the half-pixel offset box checked?

shokinhan

  • Guest
Re: The border line blurring
« Reply #4 on: November 20, 2012, 11:23:12 PM »
How to checked  the half-pixel offset ? 
where is the menu?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: The border line blurring
« Reply #5 on: November 21, 2012, 01:45:53 AM »
It's set on the UIAnchor. Select yours, and check it.

shokinhan

  • Guest
Re: The border line blurring
« Reply #6 on: November 21, 2012, 02:24:57 AM »
I can't follow your means. Some UI has UIAnchor, some UI does not has UIAnchor.
Your means all that UI need to add UIAnchor, and then they will be distinct ?




nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: The border line blurring
« Reply #7 on: November 21, 2012, 12:20:42 PM »
I think he's talking about the "root" Anchor, the one that is a child of your NGUI Camera.
On this UIAnchor script, there is a Half Pixel Offset property

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: The border line blurring
« Reply #8 on: November 21, 2012, 05:28:59 PM »
You must have at least one UIAnchor in your UI. When you create a new UI hierarchy, the anchor is automatically added for you. Sounds like you removed yours. Anchors perform pixel-perfect correction.