#SubCameraView vs Viewport

2 messages · Page 1 of 1 (latest)

coral needle
#

Hi, quick Camera question 😃 . Does anyone know when one should use SubCameraView vs when one should use just edit the Viewport?

From the documentation it seems like SubCameraView is better when one want to fill a window with non-overlapping-cameras, but the split-screen example modifies the Viewport.
https://github.com/bevyengine/bevy/blob/main/examples/3d/split_screen.rs

If I mix the two, resolution goes a little weird 😅 . It kind of seems like they do very similar things, but also dont really work together.... Anyone know why both exist, or can give me some context? Is the difference just that one allows camera overlaps, and the other one does not?

coral needle
#

I found the answer. It turns out I had misunderstood the documentation for SubCameraView. My new understanding is reflected in the drawing.