• 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
3
Question by MingRui · Nov 09, 2012 at 11:14 AM · androidspritesbugsspritemanager

Unity Android: sprites appearing as black squares

I tested my game in many devices and it runs ok, but someone who tried it in an 「Asus EeePad Transformer」 reported seeing the sprites as black squares.

I'm using SpriteManager (freely available in the Unity Wiki) to control the sprites. Basically all it does is to render the all sprites in billboards in the same mesh to save drawing calls. For the sprites, I have a 4096x4096 sprite sheet with automatic compression, using the Mobile/Particles/Alpha Blended shader.

The game is: https://play.google.com/store/apps/details?id=com.stdho.lavagirl

Unfortunately I don't have that device so I can't debug it. Anyone has any hint/idea of why this could be happening in that specific device?

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
1

Answer by cregox · Nov 29, 2012 at 08:36 PM

Most tablets don't support 4096 textures (only newest ones will do). Set it to 2048 and you're good to go. And set it to 1024 if you want to be sure it will work in any device.

I haven't tried, but here are some pointers on how to check what your device support: http://stackoverflow.com/questions/8573178/limitation-on-texture-size-android-open-gl-es-2-0

Comment
Add comment · Show 3 · 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 paulaceccon · Nov 30, 2012 at 12:32 AM 1
Share

Really? I made a game with all textures in 4096 and I have no problem...

avatar image cregox · Nov 30, 2012 at 09:55 AM 1
Share

@paulaceccon Well, it so happened on my tests with Samsung Galaxy Tab 10.1 ... But on further research, 4096 is just highly unsupported. Only newest devices do support it. I did guess and was hoping to not be corrected, but thanks for bringing it up! ;-)

avatar image Turbine · May 08, 2013 at 03:41 PM 1
Share

Thank you so much for this insight. I was about to try and rewrite and debug a big pile of code when I saw this. You saved about 3-4 hours of my life. I just lowered the texture size and everything worked.

avatar image
0

Answer by MADmarine · Nov 09, 2012 at 01:20 PM

When building, what texture compression are you using?

Might be worth looking at some of the issues that arise with certain types of compression:

http://docs.unity3d.com/Documentation/Manual/android-GettingStarted.html

http://forum.unity3d.com/threads/134019-Texture-Compression

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

13 People are following this question.

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

Related Questions

How do I use the PlayAnim function in SpriteManager 2? 1 Answer

How do you arrange sprites in order by name in Sprite atlas? 1 Answer

Prefab is not changing image in android 0 Answers

Staring a 2D game 2 Answers

2D animation in 3D environment 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges