Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Rahkola on May 18, 2014, 07:03:38 AM

Title: Black textures on Android *SOLVED*
Post by: Rahkola on May 18, 2014, 07:03:38 AM
Hi!

We we're having problems with our UI among with other textures on Android. Everything was working fine with iOS.
On some Android devices (Galaxy SI & SIII, Galaxy Tab) some of the materials and the whole NGUI UI went black occasionally.
First we thought it was the atlas textures being too big but we soon realized that the biggest atlas in use was 1024*1024.

Here's a screenshot of the problem:
(http://s10.postimg.org/u8528xx7t/IMG_20140506_140950.jpg)

The fix was to set anti-aliasing off completely.
Just wanted to report this if others are having this problem too. Also a workaround would be nice as we would love to use AA :P
Title: Re: Black textures on Android *SOLVED*
Post by: ArenMook on May 18, 2014, 10:45:44 AM
As a footnote, black textures generally mean that the texture can't be supported on the device. Happens when you try to use a 4k texture on a device that supports only 2k max for example.
Title: Re: Black textures on Android *SOLVED*
Post by: RDeluxe on June 05, 2014, 07:11:16 AM
I would like to use this topic (instead of creating a new one). I have a black texture problem, because of their size. It's only for the background textures which are really big (to allow support for retina/uHD resolutions).

I'm trying to play with the Texture Quality settings, thinking that Unity will resize them at runtime, but is it the good solution ? Here is the question (http://answers.unity3d.com/questions/721811/2d-sprite-black-on-mobile-resolution-problem.html) i created on Unity Answer. I'll update it and update this answer too.

Tks !
Title: Re: Black textures on Android *SOLVED*
Post by: ArenMook on June 06, 2014, 01:57:54 AM
Unity won't resize textures automatically for you. It's up to you to load the correctly sized texture -- by loading either the HD or UHD version of it.
Title: Re: Black textures on Android *SOLVED*
Post by: ryan on June 06, 2014, 12:00:25 PM
He might be talking about the platform-specific settings, where you can specify max texture size per platform.  Unity will resize your 4K atlas down to 2K if you tell it to, but that doesn't play well with NGUI's atlases.  The UV coordinates get all messed up.