Search Issue Tracker

Fixed in 2017.1.0f3

Votes

41

Found in

5.3.2f1

Issue ID

765563

Regression

No

[iOS] [Metal] Depth-Only Camera blacks out screen when anti-aliasing is enabled

iOS

-

To reproduce:
1. Open attached project
2. Open "TestScene" scene
3. Play the scene
4. Press the Toggle Depth Camera button
5. Notice that red sphere overlayed the scene
6. Deploy to iOS device (iPhone 6 plus)
7. Press the Toggle Depth Camera button

Actual behavior: you will see the red sphere with a black background (not the same view as in step 5)

This is fixed for iOS versions 10 and above and will *not* be fixed for older versions due to risk of introducing other regressions.
If this issue is blocking anyone from shipping a game, the best workaround is to conditionally disable MSAA for older iOS devices.

Comments (23)

  1. Ebfd7874eba05a9f22f7fa28d26e5b5b?d=mm

    chyrho

    Aug 01, 2019 15:41

    I ran my repro app on various iOS devices. The results:

    * iPad Pro Gen 1 + iOS 11.4 (Good)
    * iPad Air Gen 1 + iOS 11.3 (Bad)
    * iPad Mini 2 + iOS 12.1.1 (Bad)
    * iPhone X + iOS 12.3.1 (Good)
    * iPhone 6 + iOS 12.2 (Bad)
    * iPad Mini 3 + iOS 12.2 (Bad)

    Picture: https://i.postimg.cc/XvxCRy5t/Multi-Camera-Tests.jpg

    For devices with issues, if the screen is locked/unlocked, other the app is put to background and brought back in any other way, the skybox seems to show but with weird artifacts. The ground planes still not rendered.

  2. Ebfd7874eba05a9f22f7fa28d26e5b5b?d=mm

    chyrho

    Aug 01, 2019 04:12

    I initially posted a comment under this issue: https://issuetracker.unity3d.com/issues/camera-viewport-rect-and-depth-causes-rendering-issues-with-multiple-cameras, which is very similar. I'd like to re-post it here. Note that the developer mentioned it had been fixed for iOS10 and later. I reproduced it with iOS12.

    I think this issue is only partially fixed. We recently ran into something very similar using Unity 2017.4.22. My test device has iOS 12.3. In our case, the repro conditions are following:

    * iOS build running on device (does not repro on other platforms, or in the editor)
    * Multiple cameras in the scene with various depths; preferrably with lowest depth camera drawing skybox only, other ones clearing depth buffer and drawing some 3d objects
    * Add a directional light to cast shadow
    * Set up 3d objects to cast and receive shadows
    * In quality settings, delete all levels except one, enable both MSAA and shadow (any quality)

    The symptom is that only the camera with highest depth is rendered.

  3. E84abe4607794dfeafbdc5ba65369f6c?d=mm

    Smileys

    Jun 25, 2019 08:02

    This is NOT fixed in 2019.1.2
    Is there any workaround?

  4. 913b18af1e44218fb03c40c2edae407e?d=mm

    spierce_unity278

    Apr 13, 2019 01:03

    This bug is not fixed in 2018.3.10f1

  5. F9e09d591cca6a5cb2aa314025f412d4?d=mm

    jabaro

    Feb 24, 2019 01:35

    This issue is not fixed in Unity 2018.2. I found the issue reported here after posting about it in more detail in the forum: https://forum.unity.com/threads/second-camera-causes-main-camera-to-go-black-ios-only.634351/

  6. A20dff2cf60c592bc0389204b779a617?d=mm

    carldevelopsforcoffee

    Aug 31, 2018 02:27

    UI Flicker still in Unity 2018

  7. E8a9678b045ce1e55aa73322e433d172?d=mm

    shochet

    Jul 18, 2018 20:27

    We are seeing the issue on iPad Air 2 (A1566) and iPad mini 3 (A1599) devices.
    Other iOS devices tested do not have the problem (A1459, A1954, A1778)
    App built on Unity 2014.4.3

  8. 058c83530b86cb6153a0c6437bc9f53d?d=mm

    tiance7

    Jun 29, 2018 07:30

    Still not fixed with unity 2017.4.2f2

  9. Ed735b067d1a850d809fe92265f1725e?d=mm

    kittycon

    Apr 28, 2018 06:30

    Still not fixed with unity 2017.3.1p4

  10. 3229ba2d27d02c2850fd237b5690ffb4?d=mm

    Archviz3d

    Dec 04, 2017 10:17

    Still not fixed with unity 2017.2.0f3 or im missing something?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.