- January 28, 2015 at 9:57 pm #31948
We have an app that is working on ios web and android. the system is working great on all three except for non powervr android devices. the rendering is getting messed up around the seams of our model it looks like a depth issue but I have been unable to find the settings to fix it. we have tried this on a nexus s (which it works on) and nexus 5,6, and 7. all of the devices that are not powervr chips are showing the exact same problem. if there are any ideas i would love to hear them thanks.February 2, 2015 at 11:22 am #39391February 2, 2015 at 5:46 pm #39392
thanks for the info. I have saved two pics. one is the heart on a nexus 6 with the area of concern. the other is on the older nexus s and is the way we would like it to look. both are running the same apk. the same engine is being used on ios and the web as well with no issues. thanks again for the help.February 3, 2015 at 12:29 pm #39393
Since the issue is present on both platforms with differing levels of subtlety, I’d guess it’s a z-fighting issue where the two sub-objects of the heart meet.
Ideally, render the heart as a single object and make sure parallel edges share the same vertices. If that isn’t feasible, minimise the distance between the near and far clip planes, this will maximise floating-point precision available to the z-buffer.
Let me know if that helps.
Paul.February 20, 2015 at 6:30 pm #39395
i wanted to make sure and get back on this. The code we are using was inherited by me and i found another place that was setting the depth buffer back to 16. this of course fixed the problem. I did want to note however that adjusting the near clip plane also fixed the problem. this is a bit more sketchy because you can get into situations where you will pop through your geometry but i wanted to note that if anyone is having issues with z-fighting changing that near clip plane will help.