Author Topic: Android alpha issue  (Read 3979 times)

adsith

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Android alpha issue
« on: January 21, 2014, 07:05:14 PM »
Hello. I'm having an issue with textures in my game when I run it on Android. Some of the textures (being them in an Atlas or not) are producing a weird transparency effect. If you see the attachment, the right side is the rare effect (Android) while the left side is how it is supposed to look like (that screenshot was taken from the iOS ver.).
I've tried changing texture Z position, shaders, and widget depth and nothing seems to be fixed - sometimes it does, yet for a briefly time or worst, only a small part -. I really don't know what else to do in this case.

Thanks.

hitorijanai

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Android alpha issue
« Reply #1 on: January 21, 2014, 08:05:50 PM »
It seems like a z-buffer precision problem I had. Try to adjust the depth value of your cameras by giving wider gap of depth value between cameras.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Android alpha issue
« Reply #2 on: January 22, 2014, 02:13:29 AM »
What version is this on? I'm guessing some pre-3.0 one because NGUI's shaders don't write to depth, and the "Depth Write" option on UIPanel was removed a long time ago.