• Unity
  • Services
  • Made with Unity
  • Learn
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DocMcShot · Jul 29, 2014 at 09:22 PM · 2dgraphicsspritespixelated

How do I get the crisp sprite look?

I'm trying to figure out what I need to do to get pixel perfect graphics for a 2d game I'm working on? When I bring my png file over to Unity, I lose quality when I increase the pixels to unit from 100 to 250. I thought that downscaling wouldn't hurt the quality. I've tried it with multiple sizes of the same graphic. I've used 128x128, 512x512, & 1024x1024.

Here are my import settings: Texture Type: Sprite Sprite Mode: Single Packing Tag: Pixels to Units: 250 Pivot: Center Filter Mode: Bilinear

The sprite in the pictures below is 512x512.

Below is what the image looks line in game view at the 250 Pixels to Units.

alt text

This is what the original file looks like (below).

alt text

My question is, how do I get the smooth edges like I have in the original file? I've attempted to change filter modes and other setting to see if it would help and it didn't. It also might be worth noting that if I change the Pixels to Units to say 50, the lines are more clear that when the Pixels to Units are at 100. I know that it's probably something simple that I'm doing wrong. Ideally I would like this to work for multiple resolutions too. Any advice is greatly appreciated. Thanks!

original file.png (35.1 kB)
250 pixels to units.png (13.7 kB)
Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Miziziziz · Jul 29, 2014 at 10:11 PM 0
Share

this might answer your question: http://forum.unity3d.com/threads/sprites-looking-pixelated.244116/

avatar image Mike-Geig ♦♦ · Jul 30, 2014 at 01:15 PM 0
Share

Howdy, can you provide us with the original png file? I would like to test settings to figure this out for you.

avatar image DocMcShot · Jul 30, 2014 at 03:45 PM 0
Share

Sure, here is the original file:

alt text

Thanks again for the help!

balloon_green_512.png (25.8 kB)
avatar image Fanttum · Jul 30, 2014 at 03:46 PM 0
Share

Perhaps try changing the scale on your game object after you have imported with a good pixel to unit number.

avatar image DocMcShot · Jul 30, 2014 at 04:22 PM 0
Share

Fanttum, I've tried adjusting the scale of the object after importing it. If I make it bigger, I get smoother lines. If I make it smaller, the lines aren't smooth (the look pixelated).

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by DocMcShot · Jan 28, 2015 at 04:42 AM

The answer that ended up working for me was that I needed to change the compression from "Compressed" to either 16-bit or Truecolor.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by nerdsarewinning · Dec 05, 2017 at 12:31 AM

Sorry for resurrection but this can maybe help someone. You can always use Generate Mip Maps options for that kind of problems. Also overwrtiting Max Size and Format as your image export can decrease crispy look. http://wiki.polycount.com/wiki/Mip_Mapping

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make the pixels of an object that are obscured by a specific object transparent Unity2D 1 Answer

Can Someone Please Tell Why Graphics Do Not Look The Same as Editor When I Build my Game 3 Answers

Unity 5.6 Creating a Distortion in Sprites? 1 Answer

Pixels per unit with tile palette? 1 Answer

Can Normal maps be used to create a 2D sprites lighting system? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges