"depth only" camera only working with standard view port rect?

Hi there,

I have 2 cameras. the first one is rendering a static background. The second one is rendering the objects in the scene. Both cameras are set to only render the corresponding layers. The second camera is also set to “depth only” mode. Everything works fine, as long as I leave the setting for the view port rect at standard values. But I want to have a 3D view of my objects at the left side of the screen and some other information on the right side. The 3D view must not cover the whole screen. So I set the view port rect width value to 0.6, which makes the background of this camera black and not “transparent” as before and it seems as if the previous rendered frame is not cleared - if I move objects, the next image is just rendered over the previous.
Can anyone please explain this to me? Thanks a lot.

this happened to me while turning off the main camera. so there seems to be a setting in the main camera that prevents the render to add the rendered images. Maybe you just have to add a main camera or change the settings of your camera that is doubling the images

Thanks for your answer, but as you can see on the screenshot, there is already a camera tagged “MainCamera” in my scene.
I think the problem is, that I set the rendering path to “deferred”. Switching it to forward fixes the problem. But how is that?

While I realise this thread is quite old, the issue was never resolved.

I have come upon the same issue and would like to inquire about whether there is a way to retain Deferred Lighting while still clearing the background of the camera when not using the default normalized viewport rect.