Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • 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
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

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
1
Question by M1k4 · Jul 07, 2013 at 11:06 PM · 2datlasblur

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:

alt text

(these are the results, what i get from unity in the left side and what i want in the right side)

alt text

(this is the sprite sheet I'm using)

alt text

(these are the material settings)

alt text

(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!

Comment
Add comment
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

3 Replies

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

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.

4096x512

Also if you're making a 2D game this shader might be of use: 2D.zip


2d.zip (253 B)
Comment
Add comment · Show 5 · 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 M1k4 · Jul 08, 2013 at 12:54 AM 0
Share

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.

avatar image xortrox · Jul 08, 2013 at 01:28 AM 0
Share

I guess you probably know how to do that scaling because you know the name of it, but I still scaled it for you.

Nearest neighbor

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)

In unity

avatar image M1k4 · Jul 08, 2013 at 03:26 PM 1
Share

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.

avatar image xortrox · Aug 06, 2013 at 03:21 AM 1
Share

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.

avatar image letorbi · Aug 05, 2020 at 11:51 AM 0
Share

@xortrox Would be great, if you could improve your answer by adding the solution with type GUI and Filter mode Point to it.

avatar image
7

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

Comment
Add comment · Show 2 · 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 Anni2D · Jul 24, 2014 at 10:17 AM 0
Share

It worked for me. Thanks!

avatar image NekroJoey · May 07, 2015 at 11:13 PM 0
Share

thanksssss!

avatar image
3

Answer by abi-kr01 · Jan 19, 2015 at 07:43 AM

Uncheck Generate min map and set format to TrueColor

Comment
Add comment · Show 1 · 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 farhan3d · Nov 08, 2016 at 03:35 AM 0
Share

That unchecking of the Generate $$anonymous$$ map did the thing. Thanks!

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.

Follow this Question

Answers Answers and Comments

21 People are following this question.

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

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges