IPhone 6 and previous models, the unity part camera cannot render the problem

Source: Internet
Author: User

Recently encountered a very embarrassing problem, IPhone 6,iphone 5s and ipad Air 2 in these devices (other devices do not have =), in unity-generated IPA, some cameras are not rendered.

In fact, the Internet to find a circle basically a lot of people have encountered this problem, it should be 6 after the major rendering API updates, resulting in 6 and 6 of devices are not supported.

My side uses the Ugui,ui display scheme is the screen Space-camera,ui camera for the projection camera, Clear flags:depth only.

In the main city, it is perfectly normal to have only one UI camera and one 3D camera to capture the main and 3D characters.

But in the role interface, the UI camera is normal, an orthographic camera that shoots the background, the Clear flags:depth ony and the camera that photographed the character are not rendered correctly.

After countless attempts and packaging, found that the first line mentioned the few devices do not support metal, so the auto Graphics API removed, and then metal removed, replaced by OpenGLES3, this thing does not support the color space of the linear, So to change the color space to gamma, but this will cause some new rendering methods can not be used, so to communicate with the technical art, some calculations need their own in the shader.

Specific settings file, Build Settings, Player Settings->other Settings, select Auto graphics API, Graphics APIs only Opengle S3 (IPhone 5 should choose 2, it does not seem to support 3), Color space* Select gamma

Leave the rest to technical art

This problem foreigners have a lot of encounters, but seems to have not found the solution of Chinese, maybe later can see it?

P.S. Linear must use metal, if not the screen is all black and can not see. IPhone 6s and above devices can be used directly with metal + Linear

Above said not to render is not a hair, nor black screen, will render out some inexplicable residue.

The iOS minimum version of the above device is also 9.2, so the following operating system versions have not been tested. Unity version 2017.2

IPhone 6 and previous models, the unity part camera cannot render the problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.