Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Blurry Sprites

Discussion in '2D' started by herrytco, Feb 7, 2017.

  1. herrytco

    herrytco

    Joined:
    Feb 7, 2017
    Posts:
    5
    Hey Guys,

    in my current project, i created a GameObject with a 16x16px tile as child and a kind of marker tile (16x16px too) which should indicate if this tile is selected or not.

    I can activate/deactivate the SpriteRenderer, which works perfectly well but the marker seems kind of blurry to me (i created it in Photoshop and saved it as a .PNG).

    Do you know what the problem could be? Here are my current settings:
    screen1.PNG screen2.PNG
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
    Check the texture import settings for the sprite. Try changing the filter mode to Point.
     
  3. print_helloworld

    print_helloworld

    Joined:
    Nov 14, 2016
    Posts:
    231
    Just looks like compression, in the texture file, set the compression to none.
     
  4. TRuoss

    TRuoss

    Joined:
    Dec 5, 2012
    Posts:
    85
  5. herrytco

    herrytco

    Joined:
    Feb 7, 2017
    Posts:
    5
    So i disabled compression, set the filter to Point but it still looks the same - ill try out the pixel perfect camera then :) Thanks for the fast answers, i just didnt recognized that the thread updated.
     
  6. dmak200

    dmak200

    Joined:
    Jan 7, 2014
    Posts:
    11
    Another thing to look for is whether you've enabled mipmaps. If you have and your camera is far enough from your sprite unity will display a downsampled version of the sprite. Check the sprites import settings and try turning mipmaps off if they're on.

    Dan
    www.danmakfinsky.com
    youtube channel