Author Topic: Problems migrating project from iOS to Android - Black screen  (Read 6293 times)

Antitribu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Problems migrating project from iOS to Android - Black screen
« on: February 20, 2013, 04:23:51 AM »
Hey people o/

Me and my team have recently started migrating one of our projects from iOS to Android... and have stumbled upon a nasty problem. All the textures appear black when application run on Android.

Project was optimized for iPad2 and iPad3 (iOS6) and is running just OK. However, when we changed the deployment target to Android and tried to test APK on a Nexus 7 (Android 4.2.2) the black screen appeared instead of the main menu. After testing a few things (creating a simple label via OnGUI, etc), we have concluded that atlases for NGUI are appearing black.

Anyone had this problem, perchance?  ;) Some possible causes?

Atlas textures are in RGBA32.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems migrating project from iOS to Android - Black screen
« Reply #1 on: February 20, 2013, 07:12:45 AM »
Generally means your device can't support the texture size you are using. Many mobile devices are capped at 1024x1024 max. Good chunk -- 2048x2048. Only the very latest can handle 4096x4096.

karsnen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Problems migrating project from iOS to Android - Black screen
« Reply #2 on: February 20, 2013, 04:45:04 PM »
ArenMook : When you say texture size, do you mean the atlas size?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems migrating project from iOS to Android - Black screen
« Reply #3 on: February 20, 2013, 08:27:46 PM »
Every atlas has a texture.

cowlinator

  • Guest
Re: Problems migrating project from iOS to Android - Black screen
« Reply #4 on: March 12, 2013, 12:55:04 PM »
Hi, I've been having this problem too, so I thought I'd add some helpful info.

LIST OF MAXIMUM TEXTURE SIZES

*iOS:
iPod Touch 1 & 2:    1024x1024
iPod Touch 3 & 4:    2048x2048
iPod Touch 5:       4096x4096
iPhone 1 & 3G:      1024x1024
iPhone 3GS & 4:    2048x2048
iPhone 4S:      2048 or 4096
iPhone 5:      4096
iPad:          2048
iPad 2:       2048 or 4096
iPad 3, 4, mini:   4096



*Android:
Almost no devices are capped at 1024x1024, most at 2048x2048, and some at 4096x4096.
(This list is incomplete of course)

Breakdown:
Acer A211: 2048
Acer E250: 2048
Acer Iconia A100: 2048
Acer Iconia A511: 2048
Acer S500: 4096
Acer v360: 2048
AGPTek BRONCHO a710: 4096
Ainol Novo10 Hero: 4096
Ainol Novo 7 Venus: 8192
Ainol Novo Crystal: 4096
Airis OnePAD 735G: 8192
Alcatel One Touch 990: 4096
Alcatel One Touch 997: 2048
Alcatel Venture: 4096
Allview Alldro 2 Speed DUO: 4096
Allview ALLVIEW_TX1_Quasar: 2048
Allview P4i: 2048
Allview P6: 2048
Amazon KFJWA Kindle Fire HD 8.9: 4096
Amazon KFTT Kindle Fire HD 7: 2048
Amazon Kindle Fire: 2048
Barnes & Noble BNTV400: 4096
Barnes & Noble BNTV600: 4096
Coby Kyros MID 7022: 4096
Dell Streak: 4096
Google Galaxy Nexus: 2048
Google Nexus One: 1024, 2048, or 4096
Google Nexus 7: 2048
Google Nexus 10: 4096
Hisense HS-E860: 4096
Hisense HS-E930: 4096
Hisense HS-T950: 2048
Hisense AD683G: 4096
HTC 6435LVW: 4096
HTC Butterfly: 4096
HTC Desire X: 4096
HTC EVO 3D (Shooter): 4096
HTC EVO 3D Sprint 4G (PG86100): 4096
HTC EVO View 4G: 4096
HTC Kingdom: 4096
HTC One: 4096
HTC Sensation 4G: 4096
LG C800G: 4096
LG XT557: 4096
LG E975: 4096
Motorola Droid 2: 2048
Motorola Droid 4: 2048
Motorola DROID RAZR HD: 4096
Motorola XT389 Motoluxe: 2048
Motorola XT928: 2048
Samsung EK-GC100: 4096
Samsung Galaxy X: 2048
Samsung GT-B5330: 2048
Samsung GT-S7710: 4096
Samsung YP-GS1: 2048
Samsung SGH-T989: 4096
Sony C2104: 4096
Sony C6603: 4096
Sony ST21i: 4096
SonyEricsson LT15i: 4096
SonyEricsson WT19i: 4096
SonyEricsson Xperia SK17i Mango: 4096
Toshiba AT100: 2048
Toshiba AT570: 2048
T-Mobile G2: 4096



source:
http://www.glbenchmark.com/
http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html

karsnen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Problems migrating project from iOS to Android - Black screen
« Reply #5 on: September 25, 2013, 03:46:01 PM »
Awesome!

Nice info actually. Very handy.