Search Issue Tracker

By Design

Votes

0

Found in [Package]

4.8.0, 4.9.0

Issue ID

1123528

Regression

Yes

[LWRP] [Regression] Second camera depth-only doesn't work

Package: Scriptable Render Pipeline Lightweight

-

Steps:
1. Create a new LWRP project / LWRP template project
2. Create a second camera
- set to Depth-only
- set Depth to 1
- set Culling Mask to some layer only e.g. UI
3. Create a cube and set later to UI so that it is rendered by second camera

Actual: The content of Main Camera is not shown, but the blue default clear color + the cube
Expected: The content of Main Camera is shown + the cube

Reproducible in: 2018.3.5f1, 2018.3.4f1
Reproducible in package: 4.9.0, 4.8.0
Not-reproducible in package: 4.6.0, 4.3.0, 4.1.0

  1. Resolution Note:

    This feature has been removed due to camera stacking is producing lots of issues. There will be a better solution for LWRP to achieve this.

Comments (13)

  1. janhildebrand

    Nov 24, 2020 19:10

    Is there a solution to this?

  2. shubhamswaraj2021

    Aug 18, 2020 11:38

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  3. MlleBun

    Nov 13, 2019 09:08

    I thought that there would be workaround oin 2019.2 on camera stacking with LWRP, but it still doesn't work. Is this on your backlog please ?

  4. SantaKlaus

    Oct 22, 2019 17:22

    Me too: I need LWRP to draw 3D gui elements "on top" of my main scene.

    So ... I want to know this too!

  5. wechat_os_Qy02hx-iANxRSg-NN5lcGFQtE

    Aug 06, 2019 09:56

    "There will be a better solution for LWRP to achieve this"
    solution is what?

  6. Stormwalker

    Jun 06, 2019 16:35

    Fundamentally this is a UI problem, if you need to render UI either not through Canvas (since canvas itself introduces so many performance problems to the point it almost should not be used,) or with 3D/particle effects/etc then you need the UI to be in camera space. While one could attach the UI to the main camera this opens a whole new can of worms of operating at the wrong scale, or clipping through environment geometry. The solution of rendering to a render texture is both memory intensive, and limiting, since blending such as additive cannot be done to the background. Ultimately this is just catastrophic for advanced UI effects.

  7. Madix

    May 14, 2019 23:17

    Has a resolution been found as I have not been able to figure it out? My project relies on Camera Depth only.

  8. unity_5fpsmegasupergiperprogramer

    May 06, 2019 07:11

    I see that it is corrected to "Unity 2019.2", please correct in "Unity 2019.1".

  9. unity_5fpsmegasupergiperprogramer

    May 06, 2019 06:08

    +

    How to solve this problem??
    "CAMERA DEPTH-ONLY DOESN'T WORK"

  10. LukWol

    Apr 10, 2019 18:52

    Are there any examples how to set it up in LWRP (for now)?

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.