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 Afavar · Aug 19, 2014 at 03:31 PM · 2dspritealpha

Sprite Difference Between iOs and Android

Hi everyone, i am having a problem with a sprite that i created in photoshop. As you can see in the images it look normal when the player is set to iOs but if i change it to android it looks weird. I couldnt figure out why. So i need your help. alt text

![alt text][2]

ios.png (20.0 kB)
android.png (10.9 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 screenname_taken · Aug 19, 2014 at 03:33 PM

The bottom one is because the compression is set at 16bit alpha. If you don't want to use a GPU specific texture format, you'd need to use ETC texture compression and then use a second gray scale texture as the alpha channel. You'd need a shader that takes two textures with no alpha and merge them to make the transparency. The bad thing with this, is that it wastes a bit more memory as you'd need two textures.

You could also use 32bit alpha texture format, but that takes a lot more memory and if that isn't your only texture, you might have memory issues.

Comment
Add comment · Show 4 · 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 Afavar · Aug 19, 2014 at 08:20 PM 0
Share

Hmm i see thank you for your answer, but why this happens only when the player is set to Android?

avatar image screenname_taken · Aug 19, 2014 at 09:06 PM 0
Share

Because of market/GPU fragmentation. The texture format required by Android for all GPUs to support is ETC for non alpha channel textures and 16bit for alpha. 16bit isn't nice for gradients while iOS is only available on PowerVR chips, so that platform defaults to PVR texture format that handles gradients and alpha ok. So, if you need good gradients and texture compression along with alpha, you may need to either go with a shader that takes two non alpha ETC textures (one to supply the color and one to supply the areas supposed to see-through) or to go with GPU specific builds for Android. That would mean 3 different builds. One with DXT textures (Tegra), PVR textures (PowerVR) and ATC textures (Adreno).

avatar image Afavar · Aug 20, 2014 at 05:03 PM 0
Share

Again thank you for your explanation, this is a sprite by the way i forgot to mention. How can i fix it for sprites?

avatar image screenname_taken · Aug 20, 2014 at 10:24 PM 0
Share

It's the same thing for textures and sprites, images are images. The only difference between a texture and a sprite is that a texture will be wrapped around a 3d mesh. It's down to the format that you'll select.

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

White edge around my sprites 3 Answers

Transparency on overlapping 2D objects 0 Answers

Cut out sprite alpha using other textures 1 Answer

Custom shader of sprite results in black alpha. 0 Answers

How to get rid of dark line on the edge of transparent pixels? 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