Hi,
I’m making a 2D game with an Orthographic camera, so my view frustum is a cuboid. I have a really long cube GameObject (moving platform), which is much wider than the view frustum, traveling in the +x direction across the view frustum from the left to the right. I expect that only the part of the GameObject which is inside the camera’s view frustum will ever be visible. The frustum has a background applied on the far plane.
My Game window is sized to fit the camera’s view frustum exactly, so things look alright when I preview the game in the Game window. I ran my game on an actual device (phone) in landscape mode where the screen is a lot wider than the view frustum’s width, which causes blue bands on either side of my view frustum. But annoyingly, parts of the moving platform GameObject that are outside the frustum are also visible.
I don’t understand what I’m doing wrong. Am wrong in expecting that the part of the object that’s outside of the view frustum will not be visible? Or did my view frustum change in width when the game was run on the device because the device screen was a lot wider?
Thanks in advance for your help!
Thanks, the "black plane on either side" approach makes more sense for my game.
– LaughingTarget