Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by ItzMrJohn2You · Apr 29, 2015 at 11:57 PM · editortexturespriteimportimage

How to stop gradient banding?

I'm not sure if the problem is in Unity or Illustrator, and its only a problem on a couple of images. My artist saved these two vector images in Illustrator, with the save for web, to a PNG-16. When I view the PNG file on my computer the gradients look good, but as soon as I import them into the editor, the gradients band really bad. When I build it to the Android phone, banding still exist. I have all the setting adjust on textures for best quality. Nothing has worked. Anyone have any suggestions?

Comment
Add comment · Show 4
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 ItzMrJohn2You · Apr 30, 2015 at 11:31 AM 0
Share

The truecolor worked! Thanks!

avatar image ItzMrJohn2You · Apr 30, 2015 at 11:32 AM 0
Share

Like you said made file size twice as large. Is there another way?

avatar image digzou · Apr 30, 2015 at 11:42 AM 0
Share

As far as I know, No. You'll have to compromise on size for quality. What I do is, only set those images to true color which have gradients to it. Rest of them I import as compressed only.

I am moving my comment as an answer to your question. Please mark it as the right answer. :)

avatar image ItzMrJohn2You · Apr 30, 2015 at 12:17 PM 0
Share

Ok, Thanks.

2 Replies

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

Answer by digzou · Apr 30, 2015 at 09:56 AM

Click on your image in your project folder.

Now in the inspector uncheck "Generate Mipmaps", and hit the apply button.

Now they should look as they appear in your computer.

If still they dont appear as you want them, then change the Format to "Truecolor" and again hit the apply button.

Although changing it to truecolor increases the image size almost four times the size of the compressed type.

:)

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 mexdesigns1 · Mar 29, 2019 at 08:28 AM 0
Share

It worked for me, but I also had to set Non Power of 2 to None.

avatar image
1

Answer by dimib · Oct 27, 2019 at 09:10 PM

In addition to disabling "Generate Mipmaps" you should check the resizing settings:

  • Set the format to "automatic" and the compression to "none", your image will be used without modifications

  • Set the format to "RGB24" (without alpha) or "RGB32" (with alpha channel) so you do not loose color information by a wrong quantization bit size of the source image color space

  • At last you should check your source image resolution, as the gradient banding could appear when your source image resolution is low and Unity upscales the image for UI

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Texture parameter preview. 0 Answers

Importing FBX with textures 1 Answer

Texture2D creating blurry textures 1 Answer

Is there a way to force all my textures max size to be 2048 instead of 4096? 3 Answers

How can I interacte with Sprites from a Texture with Sprite Mode multi? 1 Answer


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