Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Weird graphic glitch on some Android devices

Discussion in 'Android' started by Miyavi, Oct 8, 2015.

  1. Miyavi

    Miyavi

    Joined:
    Mar 10, 2012
    Posts:
    58
    Hello, we're making a game at the moment and we're running into a glitch that happens on some Android devices (Samsung Galaxy s3 Mini, for example).

    As it's hard to explain, here's a gif of it: http://imgur.com/RevF6A2

    We use Spine for the characters, but I doubt that's the problem. Also, all the parts that are glitchless are done with Unity's built-in UI system, and the rest of the sprites (the background for the upper level counter, the world map background, etc) are just that, sprites. These have de Sprite-Default material assigned.

    Has anyone run into anything similar? Any guess on what's causing it?

    Thanks a lot in advanced.
     
  2. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    It looks like a projection matrix issue, as a bad matrix (or a faulty GPU driver) can cause distortions like that.
    Mind if you send me a test APK? I have two devices I can test it on. :)

    EDIT: Actually, are you using a custom projection matrix. Yes, a bit outlandish for a 2D project, but still worth asking...
     
  3. Miyavi

    Miyavi

    Joined:
    Mar 10, 2012
    Posts:
    58
    Hello, sorry for the late reply.

    We're not using a custom projection matrix. We think it could be due to a graphics card problem, but it's weird because it only happen on certain devices.

    Unfortunately, we can't share an apk, so sorry about that, too :(
     
  4. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    That's alright, the reason I pointed out the projection issue is because I saw a similar polygon glitch on a standalone unity 4.2 build on... *drums rolling* an ATI mobility radeon 345M! :D

    Anyway, hopefully the issue gets fixed. As for why I asked for the APK, look for a device with a Mali-400 MP in it, as that was the GPU hardware that I was going to test your issue on. Good luck in future endeavours. :)

    Also, what GPU does your test device have?
     
  5. Miyavi

    Miyavi

    Joined:
    Mar 10, 2012
    Posts:
    58
    Exactly a Mali-400. We also found people reporting that there was an actual bug in its drivers, which is what could be causing the glitch.
     
  6. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    Yea, those things can be a pain to work with sometimes, although in my case, it's shader precision that often trips up my projects, usually some fancy water shader.

    That might also explain why asphalt 8 looked really weird on the mali GPU... If there's actually a bug, someone should fix it!