Search Issue Tracker

By Design

Votes

0

Found in

2021.1.0a4

2021.3.4f1

2022.1.3f1

2022.2.0a15

Issue ID

UUM-3617

Regression

Yes

[Android] Unity fails to render Camera rendering depth into Render Texture in the Player

-

How to reproduce:
1. Open the user's attached "AndroidDepthCaptureBug 2021.3" project
2. Build and Run the "Scene" Scene
3. Observe the Player

Expected result: Rendering depth is successfully rendered into Render Texture,
and white Cube is observed on the bottom-left of the screen
Actual result: Rendering depth isn't rendered into Render Texture,
and only a black (or, in some versions, white) texture is observed on the bottom-left of the screen

Reproducible with: 2021.1.0a4, 2021.3.4f1, 2022.1.3f1, 2022.2.0a15
Not reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.1.0a3

Reproduced on: MacOS 12.3 (Intel)

Reproducible with devices:
VLNQA00006 - Samsung Galaxy S7 (SM-G930F), CPU: Exynos 8 Octa (8890), GPU: Mali-T880, OS: 8.0.0
VLNQA00012 - Samsung Galaxy S6 (SM-G920F), CPU: Exynos 7 Octa (7420), GPU: Mali-T760, OS: 7.0.0
VLNQA00013 - Galaxy S6 Edge+ (SM-G928F), CPU: Exynos 7 Octa (7420), GPU: Mali-T760, OS: 7.0.0
VLNQA00286 - Meizu Pro 5 (PRO 5), Android 7.0, CPU: Exynos 7 Octa 7420, GPU: Mali-T760
VLNQA00331 - HUAWEI P20 lite (ANE-LX1), CPU: HiSilicon Kirin 659, GPU: Mali-T830, OS: 9

Not reproducible with devices:
VLNQA00122 - Samsung Galaxy S9 (SM-G960F), CPU: Exynos 9 Series 9810, GPU: Mali-G72, OS: 10.0.0
VLNQA00261 - Samsung Galaxy S10+ USA (SM-G975U), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9.0.0
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
VLNQA00321 - Xiaomi MI 9 (MI 9), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 10.0.0
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00414 - Galaxy Note10+ 5G (SM-N976V), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9
VLNQA00472 - Samsung Galaxy A52 (SM-A525F), CPU: Snapdragon 720G (SM7125), GPU: Adreno 618, OS: 12

  1. Resolution Note:

    The user uses a custom shader for screen-space UI that has ZTest enabled by default. At the point when the Render Texture is drawn into the frame, the depth buffer has been already discarded as it is not needed anymore. That means the depth buffer of the frame now contains undefined contents. And finally the custom shader does depth testing on the depth buffer that has undefined content which leads to the Render Texture appearing to be not rendered.

    To get correct results add "ZTest Always" to "PreviewShader.shader"

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.