Search Issue Tracker
Won't Fix
Votes
3
Found in
2022.3.55f1
Issue ID
UUM-91760
Regression
No
Errors when rendering a camera to render texture with only depth
*Reproduction steps for the latest 2022.3 version:*
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Observe the Console
*Expected result:* No errors are present
*Actual result:* RenderPass errors are being thrown
*Reproduction steps for the latest 6000.1 version:*
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Make a standalone build in Development mode
4. Observe the build Console
*Expected result:* No errors are present
*Actual result:* RenderPass errors are being thrown
{code:java}
Errors:
”RenderPass: Attachment 0 is declared as depth attachment but BGRA8 sRGB is not a valid depth format.
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
BeginSubPass: Not inside a Renderpass
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
EndRenderPass: Not inside a Renderpass
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)”{code}
The bug has been fixed in the Editor (edit: mostly bypassed by disabling NRP there) starting version 6000.0.33f1. However, the problem remains in a Standalone build. The problem is also present in the Editor and Builds for 2022.3 latest version.
{*}Reproducible with{*}:
- 2022.3.55f1 (for Editor and Builds)
- 6000.0.33f1 (for Builds).
{*}Fixed in{*}: 6000.0.21f1 (Editor only).
{*}Reproducible on{*}: M1 Max MacOS 15.1.1 and Windows 10
{*}Not reproducible on{*}: No other environment tested
Comments (2)
-
tibbers_superpower
Jan 16, 2025 14:15
I believe this issus was introduced in 2022.3.50f1. Since the vision, URP's DepthPrepass act abnormally and _CameraDepthTexture may out of sync
-
boafra900
Dec 23, 2024 04:49
Rtqsiso
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
Resolution Note:
This issue cannot be reproduced when using Render Graph, which is the recommended and maintained tool for the latest releases. Please try to enable it to bypass this problem. Otherwise, this problem can be avoided by having a different renderer for the depth camera, with Native RenderPass disabled on it.