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 headkitgames · Feb 03, 2011 at 11:05 AM · textureiphonecolorgradient

Why this bad color gradient with textures in iphone?

hi there!

is there a way to get rid of this crappy 8bit looking oldschool color gradient I get when exporting image textures (with in photoshop smooth looking color gradients) to iPhone?

thx!

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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Jessy · Feb 03, 2011 at 11:39 AM

It's not 8bit, it's 16-bit. :-P

If you're using 16-bit for textures where banding is an issue, don't.

Otherwise, in Appcontroller.mm, search for kEAGLColorFormatRGB565 and change it to kEAGLColorFormatRGBA8. Same thing for GL_RGBA8_OES to GL_RGB565_OES. At least, I think you need to do both. I'll edit this post if you only need to change one of those.

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 bbrode · Sep 17, 2011 at 05:55 PM 0
Share

This worked for me!! Thanks!!

avatar image
2

Answer by anomalous_underdog · Feb 03, 2011 at 02:09 PM

In the import settings, change the Format to "16 bits". If that still doesn't look good for you, change it to "Truecolor".

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 Jessy · Feb 03, 2011 at 02:42 PM 0
Share

If the texture had been in PVRTC, going to 16 bit should only increase a stepped gradient effect. PVRTC is blurry, but it has the potential to use more colors than you get with RGB565 or RGB4444.

avatar image anomalous_underdog · Feb 03, 2011 at 02:47 PM 0
Share

oh yeah, that's right. so either use compressed, or truecolor.

avatar image Jessy · Feb 03, 2011 at 04:55 PM 0
Share

I meant RGBA4444, sorry.

avatar image headkitgames · Feb 03, 2011 at 05:14 PM 0
Share

ou, I thought I read one should only use the 16 bit for iphone. I'll try this out. thnx!

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

1 Person is following this question.

avatar image

Related Questions

Changing two different objects renderer colour 1 Answer

How do I fill a texture with one color? 2 Answers

Built in shaders - FX? 1 Answer

HUGE Texture problems on iPhone when using animated UVs 2 Answers

Burning object, making it appear gradually black 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