Overlapping Cameras

I currently have two cameras in my scene. An orthographic camera for rendering 2d characters, and a perspective one for 3d scenery. The issue I am having is that no matter what I try, I cannot get both cameras to render to the sceen at once.

Does anyone have any suggestions on how to get this to work, or has anyone done it before.

Thanks.

Have you set the Clear Flags to Depth only on the second camera?

1 Like

I have tried that, but no luck.

Set the depth of the cameras appropriately (2d one on top).

–Eric

I will try playing with the depths again when I can.
When I tried it before, all it seemed to do was change which camera was visible.

You need to set the top camera’s clear flags to Depth Only, like SpookyCat mentioned.

–Eric

I was having the same trouble. In addition to the Depth-only clear flags, make sure you set your rendering path to Forward or Vertex Lit. My overlay camera had a rendering path of Player Settings, and anything not rendered by the camera showed up black.