- Home /
How to stop textures from getting blurry?
Hello everyone!
I'm making a 2d isometric game and for that I'm using sprite sheets for the characters. But every time i try to apply it to a cube/plane i get a blurry texture.
These are the images/settings I'm using:
(these are the results, what i get from unity in the left side and what i want in the right side)
(this is the sprite sheet I'm using)
(these are the material settings)
(these are the image settings)
Important!
I know that this was answered before and that people say that to fix this my textures must have a size of power of 2, but in some cases that's not very good for performance or for the pixel image itself, so is there any good way of doing this? (a way of fixing the blurriness and not cause any other problem later)
Thanks in advance!
Answer by xortrox · Jul 07, 2013 at 11:38 PM
I scaled the sprite sheet up to 4096x512 using gimp and the quality was improved a lot, but I couldn't find a way of fixing the blur.
Also if you're making a 2D game this shader might be of use: 2D.zip
You scaled it using the wrong settings, it must be scaled using "nearest neighborhood", but still doesn't solve the issue tho.
Thanks a lot for the shader I'll check it out.
I guess you probably know how to do that scaling because you know the name of it, but I still scaled it for you.
Seems to give good enough results in unity as well when you set the max size to 4096. (generating mip maps will help on the distance as well as seen ti the right)
Thanks for doing this.
$$anonymous$$y problem was that i didn't know it unity scaled to power of 2 automatically so all my images will get blurry, but now I'll always use power of 2.
I just came across a possibly different approach to this, set texture type to GUI and Filter mode to Point and it should be pixel perfect.
@xortrox Would be great, if you could improve your answer by adding the solution with type GUI and Filter mode Point to it.
Answer by blorg · Jul 13, 2014 at 03:50 AM
Also Set your Sprites Filter to "point". I did this and all my sprites look crystal clear, even though they are scaled 4x
Answer by abi-kr01 · Jan 19, 2015 at 07:43 AM
Uncheck Generate min map and set format to TrueColor
That unchecking of the Generate $$anonymous$$ map did the thing. Thanks!
Your answer
Follow this Question
Related Questions
Sprite/ Atlas/ Memory limit in 2D Mobile Games? 2 Answers
why does my 2d sprite keep setting itself to "Advanced" and don't pack ? 0 Answers
How do I get the bounds of a sprite on its sprite atlas? 0 Answers
In a 2d game, how can i keep real size of sprites? 0 Answers
Why do my sprites/textures darken whenever I move my camera? 0 Answers