Author Topic: Blurry textures for standalone  (Read 9372 times)

hummada23

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 45
    • View Profile
Blurry textures for standalone
« on: October 02, 2016, 11:44:08 PM »
Hi,

My NGUI fonts look great in the Unity editor, no matter what size editor window I use. However, if I switch to 'standalone' in the Editor (or build and run the application), then the fonts look very rough. 
 
I think I've tried most of the suggestions in the many other posts about blurry fonts, but I still can't get the standalone versions to look as good as the other versions in the Editor. Can someone help?

Here are my current settings:

My font:
Verdana size 64

My font image settings:
- Mip mapping off
- Trilinear filtering
- Texture type: Sprite (2D and UI)
- Override for Mac and PC: 2048 Truecolor

My UITexture settings:
- Size: 16, 16, 1. Otherwise unscaled except for pixel perfect UIRoot scaling

hummada23

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 45
    • View Profile
Re: Blurry textures for standalone
« Reply #1 on: October 03, 2016, 07:13:13 AM »
I can now get fonts to display very clearly (when running in all display modes from the Editor, including standalone mode) if I set the default resolution to 1280x768.

Why does this stop my fonts from being blurry?

I'd like to understand this so that I can work out why it still doesn't appear crisp when running outside the Editor. My screen resolution is 1280x800 (different aspect ratio to 1280x768).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blurry textures for standalone
« Reply #2 on: October 06, 2016, 05:54:36 AM »
What's your UIRoot set to? It needs to be set to flexible and not be limited by its max width/height. Generally Unity game window is going to be smaller than your full app. I'm guessing you just limited it on the UIRoot.

hummada23

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 45
    • View Profile
Re: Blurry textures for standalone
« Reply #3 on: October 10, 2016, 04:44:51 AM »
Thanks.

I've tried both flexible and constrained for the UIRoot, with 2048 as the max height (which I can't reach on my laptop).

Regardless of the setting, the GUI looks clear and sharp in the Editor. However, it doesn't retain the same quality when deployed standalone. I can only get the fonts to appear crisp if I make them very large.

If I make my fonts pixel perfect they are size 78, but I'm shrinking them to 12.

Does any of this provide a clue as to why the GUI looks clear and sharp in the Editor, but not when deployed?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blurry textures for standalone
« Reply #4 on: October 11, 2016, 10:05:59 AM »
Why are you shrinking them to 12? I don't understand that part. Pixel perfect implies 1 pixel on the screen corresponds to 1 pixel of whatever is drawn, such as your fonts. So if your font is size 78, it should be drawn as size 78. If it's size 12, it should be drawn as size 12.

Check your quality settings too. Make sure your build quality isn't set to something silly, like fastest that reduces texture size.