Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by ragefordragons · Apr 12, 2020 at 12:41 AM · imageresolutionscalephotoshop

Photoshop drawings loose quality in Unity?

I'm attempting to change my game's UI to a hand-drawn style using photoshop. Once I'm done with an Icon, I export it as a JPEG. I'm familiar with import settings in regards to pixel art and maintaining its quality, but this seems to be an entirely different process. My drawings look perfect close up, but as you zoom out in the editor they lose a lot of quality. I've already tried many of 'usual' problems: changing my filter mode to point, turning off compression, turning of mip maps, turning of anti-aliasing in the project settings, ensuring my texture quality is the highest it can go in settings.

I think it may have something to do with pixels per unit, which I assumed needed to match the resolution of the image I was exporting, but that doesn't seem to change much either. I've also tried exporting the file as a very large size (2000 x 2000) but it has the same effect.

If anybody has any tips on how to fix this, that would be great. Below are the icons zoomed in versus zoomed out in the game view.alt text alt text

gamequestion1.png (6.9 kB)
gamequestion2.png (69.6 kB)
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

1 Reply

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

Answer by Namey5 · Apr 12, 2020 at 11:26 AM

The things you have disabled are actually there specifically to fix this. What you are looking at here is aliasing - where there is a lot of high detail in a sub-pixel range, so you will end up with each pixel not being an accurate representation of the area it is supposed to be sampling. The conventional fix for this is mip-mapping, where the texture is pre-filtered for different sizes on screen such that lower resolution versions are more accurate in relation to the area they cover. For UI, mip-mapping is generally disabled as it can cause problems, so if you know that the image is going to always be that size on screen you should decrease the texture's base resolution in the import settings.

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 ragefordragons · Apr 12, 2020 at 04:39 PM 0
Share

Thanks for the reply. I'm not quite sure what you want me to try... should I turn back on anti-aliasing in the project settings? Should I turn on mip-maps in the import settings? What should I do with the filter mode and compression?

I have also tried lowering the pixels per unit before to no avail.

avatar image Namey5 ragefordragons · Apr 13, 2020 at 04:12 AM 0
Share

Compression you can leave off, anti-aliasing won't make a difference, you should set filtering to bilinear and try one of two things;

  1. Enable mip-mapping and see if it helps. You can also use trilinear filtering here as this may fix some mip-mapping artefacts.

  2. Disable mip-mapping, but manually lower the texture's full resolution on import based on the size of the UI elements on screen. Something like 256x256 is probably appropriate here, although I would try different resolutions to see which is the most applicable.

avatar image ragefordragons Namey5 · Apr 13, 2020 at 05:46 PM 0
Share

Thanks for getting back to me.

The first solution leaves both textures blurry, but I suppose it looks a bit better than before.

As for the second one, I'm a bit confused on what you mean by lowering its resolution. As in, I should change the resolution in photoshop and then export it to unity? What does pixels per unit have to do with anything?

I've included a screenshot of the import settings for the top texture. When I exported it from photoshop, I had it 2000 x 2000 width and height, and around 200 resolution. I'm sorry I don't really know much about this kind of thing.

alt text

gamequestion4.png (42.0 kB)
Show more comments

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

129 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 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

Adjust overlay position for different resolutions 0 Answers

Is it better to enlarge an image by width/height or by scale? 0 Answers

Canvas Scaler settings 0 Answers

newbe scaling maze sceen for different resolutions 0 Answers

photoshop resolution 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