# Rendering issues on certain Android devices

**URL:** https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341
**Category:** Graphics
**Created:** [January 20, 2016, 4:17am UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341 "2016-01-20T04:17:26Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 20, 2016, 4:17am UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/1 "2016-01-20T04:17:26Z")

</div>

Two testers returned screenshots from their android devices that looked like some of the environment polys may be flipped and were being culled. However, this issue only occurred to these individuals. One of them was using an LG G pad (tablet) and the other Samsung Galaxy S4. There are other testers however with Galaxy S4 that are not experiencing this issue. I cannot reproduce it in the Editor, on any iOS device, or any Andriod device. So it’s really hard to find the cause. Here are links to what they see and what they should be seeing.

How it looks  
[https://dl.dropboxusercontent.com/u/45752263/bad.png](https://dl.dropboxusercontent.com/u/45752263/bad.png)

How it SHOULD look  
[https://dl.dropboxusercontent.com/u/45752263/good.png](https://dl.dropboxusercontent.com/u/45752263/good.png)

Correct me if I’m wrong, but I believe normals are not necessary for face culling, correct? I ask because I do not import any normals since I don’t have any lights in the scene.

Does anyone have any idea what could be causing this?

---

<div class="post-metadata">

### Author: ![jvo3dc](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jvo3dc](https://discussions.unity.com/u/jvo3dc)
#### Post date: [January 20, 2016, 6:17pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/2 "2016-01-20T18:17:35Z")

</div>

> [@artaka](#):
>
> Correct me if I’m wrong, but I believe normals are not necessary for face culling, correct?

Correct. You might try to explicitly set back face culling in the used shaders. In some cases the last used setting is used instead of the default value if it’s not explicitly set.

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 20, 2016, 7:04pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/3 "2016-01-20T19:04:12Z")

</div>

I see… Thanks jvo3dc. I’ll give that a try.

Although searching through my shaders, I don’t have one that explicitly sets “Cull Front”. Therefore, even if it was using last used setting, there should never be a case where front facing polys are culled.

---

<div class="post-metadata">

### Author: ![jvo3dc](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jvo3dc](https://discussions.unity.com/u/jvo3dc)
#### Post date: [January 27, 2016, 10:48am UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/4 "2016-01-27T10:48:30Z")

</div>

> [@artaka](#):
>
> Although searching through my shaders, I don’t have one that explicitly sets “Cull Front”.

It could also be somewhere in a bulit-in gui or particle shader for example. Or even outside the shader in a call from the engine itself.

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 29, 2016, 4:14am UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/5 "2016-01-29T04:14:22Z")

</div>

Thanks jvo3dc, after playing will culling for a while I think I eliminated that the issue is from culling. Looks closely it seems that it actually renders everything but it renders certain background polys on top of the foreground polys. Seems like it could be some Z-sorting issue.

Check out this video:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=l94ExLQJef8)

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 29, 2016, 4:48pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/6 "2016-01-29T16:48:30Z")

</div>

Sorry for the shameless bump, but I’m running out of ideas to try. Any suggestions?

---

<div class="post-metadata">

### Author: ![AkiraWong89](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/akirawong89/32/135578_2.png) [@AkiraWong89](https://discussions.unity.com/u/AkiraWong89)
#### Post date: [January 29, 2016, 6:27pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/7 "2016-01-29T18:27:14Z")

</div>

Qualcomm Adreno Series. I see.  
What shader are you using? Do you use texture atlas with some alpha inside?

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 29, 2016, 6:55pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/8 "2016-01-29T18:55:02Z")

</div>

I am using a texture atlas but there is no alpha… It’s a custom vertex shader that takes two textures, one for color and another for lightmaps.

---

<div class="post-metadata">

### Author: ![AkiraWong89](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/akirawong89/32/135578_2.png) [@AkiraWong89](https://discussions.unity.com/u/AkiraWong89)
#### Post date: [January 30, 2016, 7:49am UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/9 "2016-01-30T07:49:16Z")

</div>

Maybe some formula in the custom shader is not compatible with optimization of Adreno GPU.  
Here I found some similar issues on other people encountered like you too:  
[https://developer.qualcomm.com/forum/qdn-forums/maximize-hardware/mobile-gaming-graphics-adreno/28083](https://developer.qualcomm.com/forum/qdn-forums/maximize-hardware/mobile-gaming-graphics-adreno/28083)  
[https://github.com/Rajawali/Rajawali/issues/429](https://github.com/Rajawali/Rajawali/issues/429)

In additional. You can take a look at this texture import settings for specific target too.  
[http://docs.unity3d.com/Manual/class-TextureImporterAndroid.html](http://docs.unity3d.com/Manual/class-TextureImporterAndroid.html)

Ya. Mobile GPU always a tricky part of fixing especially Android since it has many kind of GPU.  
Hope these useful links would help you on something.😉

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [January 31, 2016, 5:15pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/10 "2016-01-31T17:15:23Z")

</div>

Thanks a lot Akira. The links you provided helped set me on a good direction. At this point I need to get a hold of a device that has this issue and try some of the different solutions suggested there.

---

<div class="post-metadata">

### Author: ![artaka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@artaka](https://discussions.unity.com/u/artaka)
#### Post date: [March 16, 2016, 7:06pm UTC](https://discussions.unity.com/t/rendering-issues-on-certain-android-devices/613341/11 "2016-03-16T19:06:49Z")

</div>

After digging around a bit more, I found that this is a Unity bug pertaining to Adreno GPU skinning and GLES 3. Turning off GPU skinning or forcing GLES 2 fixes the issue.
