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 -Rix- · Aug 16, 2014 at 12:33 PM · ioscompressionpng

Unity IOS: Texture format?

Hi.

Whenever i load a png via WWW class, XCODE says:

 "WARNING: no native support for texture format 5, converting to 4!"

What exactly it does mean and what can i do about it? I guess it takes a while for IOS to accomplsh it(?). From what I understand IOS converts textures to its own format (PVRTC?). I tried searching but I still dont know how to resolve the problem. If I compress textures in inspector - it seems like those are only compressed in the inspector, cuz there is no real difference when it comes to loading a sprite via WWW class (real file is untouched?).

Did anyone had such warning?

Comment
Add comment · Show 5
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 -Rix- · Aug 17, 2014 at 11:30 AM 0
Share

Here I've found a good info about the problem, but still I have no idea how to resolve it...

http://iphonedevelopment.blogspot.com/2008/10/iphone-optimized-pngs.html

And it takes too much time for a png to be "changed" in a run-time, so the app slows down...

avatar image kumarc123 · Aug 17, 2014 at 04:04 PM 0
Share

Check this Link. It is the same repeated question

avatar image -Rix- · Aug 17, 2014 at 04:53 PM 0
Share

Well, actually it doesnt answer my question and I think I've made a solution for this problem - will post an answer once I check it out. Seems like XCODE was at fault.

avatar image b4cksp4ce · Aug 25, 2014 at 05:34 PM 0
Share

Hi, I'm facing the same problem on iOS, have you managed to find a solution for this ?

Thanks.

avatar image -Rix- · Aug 26, 2014 at 09:48 AM 0
Share

b4cksp4ce - yes - check, I posted an answer - it haves to be POT and square :)

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by hlynbech · Oct 01, 2014 at 08:16 PM

Inspecting the enum TextureFormat, I found that 5 is ARGB32 and 4 is RGBA32.

When creating a new Texture2D from scripts, without a format specifier, Unity defaults to ARGB32, but is apparently not supported on iOS (tested on iPad 5).

Specifically using the constructor

newtex = newTexture2D (w, h, TextureFormat.RGBA32, false);

got rid of the problem on my iPad.

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
avatar image
0

Answer by -Rix- · Aug 26, 2014 at 10:05 AM

From what I've found out it seems that this error is about the texture size. Namely: it have to be POT(Power Of Two) and Square, meaning, if you upload a sprite, its best to have a 128x128, 256x256 etc - just fill the unused pixels with alpha color.

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 b4cksp4ce · Aug 26, 2014 at 10:14 AM 0
Share

Hum thanks, I'll try that asap !

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Best texture compression: TinyPNG + Unity sprite Packer? 1 Answer

IOS texture artifacts/banding 1 Answer

Transfered from Android to IOS. Why is the game play jerky now? 2 Answers

Reducing assets size on iOS 0 Answers

iOS: Compressed audio not affecting memory? 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