Post-Processing and Cinemachine


Cinemachine

Three cameras were set up, one for a third person view of the player, another that follows a track around an area while looking at the player (dolly), and one that tries to keep specific enemies and the player in view (target group).

To set up the target group camera the player and some enemies were added to the 'Target Group' object. This tracks what objects the camera should follow and look at. The view and settings can be seen below.

https://imgur.com/a/7Xah2t6



To make the third person camera it was set to look at and to follow the player. The settings are shown below.



To set up the dolly camera the camera was made to follow a path and to look at the player. The path and settings can be seen below.




To switch between the third person and dolly camera views a trigger area was set up. This means that when the player walked into this area the priority of the dolly camera was increased which causes a switch to this camera. When the player walked out of this area the priority was decreased which causes a switch back to the third person camera.  The camera views and switch can be seen below.

https://imgur.com/a/YfVt1uo


Post-Processing

By adding a 'Post-process Layer' component to the main camera post processing effects can be applied.  A 'Post-process Volume' is also added to the camera to choose a 'Post-process profile' which holds the effects. The effects added to the camera are vignette and grayscale. Vignette is an inbuilt unity effect while grayscale is made using a custom script. Vignette darkens the edges of the screen and grayscale reduces the amount of colour. When the player walks into a corner of the maze the effects on the camera change. This was done by adding the 'Post-process Volume' directly onto the object. The object has a trigger collider on it so that effects are applied when the player walks within this area. The new effects are color grading and chromatic aberration which are both built into Unity. Color grading is set to darken the screen and chromatic aberration distorts the edges. Settings and the effects can be seen below.

https://imgur.com/a/YXNav6d

Get UTAS KIT207 Portfolio

Leave a comment

Log in with itch.io to leave a comment.