Author Topic: UILabel is pixel perfect on one computer and blurry on another  (Read 2782 times)

Phoenix2518

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 4
    • View Profile
Hi there. I have a couple of simple UILabels and a sliced button for an input prompt ("Talk" in the bottom center), which all appear pixel perfect on my laptop but are somehow blurry on my client's machine. I'm including links to screenshots of my computer and his (may have to download to view in detail). I've tried every suggestion I can find on the web. I call MakePixelPerfect() on the labels and button during initialization. There are no floating point values for local position anywhere in the hierarchy. The camera Scaling Type is set to Pixel Perfect, and I disabled anchors. Since I'm using Arimo 20, I tried switching from our preferred 24 point to 20.

The correct resolution is specified in the player settings with no resolution dialog to mess things up, so I don't understand how the text can look differently at the same resolution. What else can I try?

http://i1343.photobucket.com/albums/o800/BrianCrandell/Local_zpswptgobac.png
http://i1343.photobucket.com/albums/o800/BrianCrandell/Other_zpsttostggc.png
« Last Edit: March 05, 2016, 10:49:38 PM by Phoenix2518 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel is pixel perfect on one computer and blurry on another
« Reply #1 on: March 06, 2016, 01:10:47 PM »
What quality settings did your client specify on start? Fastest quality setting degrades texture quality. Another reason for blurriness can be using OpenGL mode on Windows instead of DirectX (something that's addressed in the Pro version of NGUI right now). Lastly, depending on how you set up your UI, making the window smaller can result in blurry UI if your UI is not set to be pixel-perfect (which seems to be the case in your screenshots). The fix for that is simple -- force the game window to be of specific size or don't use a Constrained UI Root.

Phoenix2518

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 4
    • View Profile
Re: UILabel is pixel perfect on one computer and blurry on another
« Reply #2 on: March 07, 2016, 04:32:00 PM »
Hi, thank you. I happened to be in the middle of a major revision and wasn't able to work on anything else until completed.

There is no quality or resolution dialog, so my client isn't changing settings on start. I checked Quality in project settings, and the highest (Fantastic) is default.

I haven't upgraded in a while; I'm still on 3.5.9. I think I remember Constrained UI being an option, but I don't recall where. Under UI Root, for Scaling Style I only see Pixel Perfect, Fixed Size, and Fixed Size On Mobile. I have it set to Pixel Perfect. My client's monitor just happens to be a lot larger; I'm on a small laptop. I don't allow a resizable window, so my client can't be changing that either.

I'm not forcing OpenGL, so I assume it's defaulting to DirectX. Are there any other possibilities?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel is pixel perfect on one computer and blurry on another
« Reply #3 on: March 12, 2016, 07:42:06 AM »
3.5.9 is much too old unfortunately. I can't suggest much short of upgrading. It's literally years old now.

Phoenix2518

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 4
    • View Profile
Re: UILabel is pixel perfect on one computer and blurry on another
« Reply #4 on: March 12, 2016, 09:04:20 AM »
Understandable, yeah. I recall an upgrade breaking another project a while back, and therefore we've been trying to avoid upgrading. Fortunately, my client built a standalone from his computer just last night in which the text looks fine. He doesn't have access to Unity Pro yet, so we'll have to wait until he does for a final answer. No idea what could possibly be different on my machine, but we'd be fine with him outputting all the final builds.