Select Page

Splitting and Merging Camera

This was a kind of camera that we considered using in the Trial: The Night Parade. While we decided to not use it in the finished product, I still think it is a neat thing. It works by having two cameras, each with half their view cut out and then layering the two camera views on top of eachother, resulting in a screen that looks to be a single screen. When the player characters move too far from eachother, the camera lerps from a half camera view to a “normal” field of view, as each of the cameras only see half of the view compared to a normal camera. Without adjustments this causes them to look at the players from an angle if one adjusts their position to center the player in the split camera view.

The Camera Manager

This script tells the two childed cameras when to split and when to merge and is also responsible for moving the two child cameras around when they imitate a single camera.

The Cameras

This script is what is attached to the cameras. It decides what view to cut out and controlls its own position when they are set to follow an individual player.