- Home /
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.
This is what the original file looks like (below).
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!
this might answer your question: http://forum.unity3d.com/threads/sprites-looking-pixelated.244116/
Howdy, can you provide us with the original png file? I would like to test settings to figure this out for you.
Perhaps try changing the scale on your game object after you have imported with a good pixel to unit number.
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).
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.
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
Your answer
![](https://koobas.hobune.stream/wayback/20220613155326im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 5.6 Creating a Distortion in Sprites? 1 Answer
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
Transparent bleed in a sprite generated at runtime 0 Answers
1px Gap Between 2D Sprites 2 Answers