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
0
Question by Johny_G · Feb 10, 2015 at 12:12 PM · androidtexturescompression

Android Texture Compression with RGBA

Hi there! I have trouble getting compressed textures to Android builds of our game. PC is OK, iOS is OK, but as soon as I enable compression, all Android textures get terrible color banding. Having truecolor textures is a bit of a luxury we cannot afford.

Strange thing is, that the issue is gone as soon as I remove alpha channel. But we use it for specular maps, and having them separate would require us to modify all our textures and shaders. Is there any way around it?

P.S.: The 16-bit variant is banding as well. Only truecolor works fine.

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

Answer by giulio-pierucci · Feb 10, 2015 at 04:35 PM

You'd check texture kb size. Maybe that a smaller truecolor texture, in some case, are less lossy that a big 16 bit texture. Set general texture compression and override for specific case.

Check this page at bottom:

http://docs.unity3d.com/Manual/android-BuildProcess.html

Comment
Add comment · Show 6 · 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 Johny_G · Feb 10, 2015 at 06:25 PM 0
Share

It doesn't seem to be related to kB size or Android build process. Actually, it's already terrible within Unity Editor, as soon as it has an Alpha channel. The 16-bit variant is exactly the same as the compressed one. Screenshots attached.

Truecolor Texture Compressed Texture

texture-compressed.png (123.4 kB)
texture-truecolor.png (407.1 kB)
avatar image giulio-pierucci · Feb 10, 2015 at 06:54 PM 0
Share

I don't understand. First image is original outside unity? The second is compressed?

Post original image, if is not the first

avatar image Johny_G · Feb 10, 2015 at 07:09 PM 0
Share

Both are from Unity Editor (inspector). First is truecolor, second is compressed. I will ask for permission to share the original file if required.

avatar image giulio-pierucci · Feb 10, 2015 at 07:21 PM 0
Share

No, for now. First image are incorrect? It should be similar to original

If you noticed, the size in kb of compressed image are smaller than truecolor image, having same size.

You may reduce max size, in some case, and increase color depth; For other images you can make image bigger, but more compressed, depending on image use.

For a normal map, for example, you can use a 256x256 truecolor image (normal information more accurate)

avatar image Johny_G · Feb 10, 2015 at 07:32 PM 0
Share
  • First image is absolutely correct. The truecolor looks exactly as it should. But we need them compressed for memory concerns and AP$$anonymous$$/IPA size.

  • The other image shows the damage that 16-bit or Compressed mode do. The similar colors are spilled together, and ingame it looks truly terrible (as soon as you put it on mesh and use some lights, it looks like a GIF).

  • If we remove the Alpha channel, the compression goes well and the quality decrease is $$anonymous$$or (if any - no screenshot is provided, because it looks fine). However, the Alpha is being used for Specular maps, and we would like to find a way to go around this so we don't have to redo all our textures and shaders. Also, having separate files for specular maps might bring yet another memory and performance issue.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

When does texture max-size override take effect? 1 Answer

iOs weird textures (good on android) the reason? How to fix ? 1 Answer

Android tablet crashes depending on texture compression 0 Answers

Android: Preparing textures for 16-bit compression 1 Answer

Textures are distorted when building for android 2 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