• 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
0
Question by fredkoto · Dec 26, 2017 at 12:54 PM · scalingpngpixelated

PNG sprite is pixelated

My sprite looks really pixelated in the game, it is the same when I run the game on android.

alt text

This is the default png file that I'm using and as you see it is smoother. alt text

I tried changing everything 1 by 1 in the sprite settings to see if something would change, and it only gets a bit smoother but very, very blurry when I set the Max Size to 32 in the import settings of the sprite. I disabled the "Compress assets on import" in the preferences menu.

I tried using a bigger resolution of the circle like the one below, and it still would not be smooth.. I really want it to be smooth like the one right here: alt text

circle2.png (657 B)
circle1.png (1.9 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 NorthStar79 · Dec 26, 2017 at 01:10 PM 0
Share

check your import settings, select your sprite in project window and look inspector try changing filter mode here : alt text

if changing filter mode does not work for you, try to change compression to none (not suggested usualy)

capture.png (33.2 kB)
avatar image fredkoto NorthStar79 · Dec 26, 2017 at 01:15 PM 0
Share

Tried changing everything in the inspector 1 by 1 to see how it changes the looks of the sprite. It only gets a little bit smoother when it's $$anonymous$$ax Size is 32. I tried changing the Filter $$anonymous$$ode. Tried removing the compression (setting it to none).


Just now I noticed that if I import a bigger circle (300x300) and scale it down to the same size, it also becomes pixelated but only in the Game view. In the Scene view, the 300x300 images looks really good. Check below images, first from scene view, second from game view.

alt text

alt text

1.png (26.5 kB)
2.png (2.1 kB)
avatar image NorthStar79 fredkoto · Dec 26, 2017 at 01:24 PM 0
Share

oh yes downscaling is an option too, but ins$$anonymous$$d of downscaling i recommend you to import high-res sprite than increase pixels per unit to a higher value. this may save you some headache causing by scaling at future.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by theterrificjd · Dec 26, 2017 at 12:58 PM

Does it need to be as a sprite? I've experienced this, and solved by importing it as a transparent texture.

Comment
Add comment · Show 3 · 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 fredkoto · Dec 26, 2017 at 01:01 PM 0
Share

How would I do that? There is no "transparent texture" in the drop down menu at "Texture type"

avatar image theterrificjd fredkoto · Dec 26, 2017 at 01:04 PM 0
Share

I just use a Transparent PNG file (with transparency in the file), and import it with the default settings. Then with InputTextureAlpha as the Alpha Source, and Alpha is Transparency checked, I get smooth circles in materials.

Of course, if the material requires a sprite, I'm not sure how that'd be fixed.

avatar image fredkoto theterrificjd · Dec 26, 2017 at 01:09 PM 0
Share

I'm using the sprites-default material. It's a 2D game, do I need to change the material of the sprite in order to achieve smoother circle?

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

73 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

PNG displays pixelated image. 7 Answers

Scaling water flow parts 2 Answers

Can I just scale my game for any resolution? 1 Answer

Scaling of GUILayout and GUI elements for android 1 Answer

Adding a single large quad object to scene significantly lowers framerate 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