1
00:00:00,000 --> 00:00:00,000
Hello, guys.

2
00:00:00,000 --> 00:00:01,000
This is me again.

3
00:00:01,000 --> 00:00:06,000
In this video, I want to talk about post processing this video exactly from my previous version of

4
00:00:06,000 --> 00:00:12,000
the course, but information is still up to date so we can use it in case it won't be.

5
00:00:12,000 --> 00:00:14,000
Don't worry, I will update the video as soon as possible.

6
00:00:14,000 --> 00:00:16,000
Yeah, that's all what I wanted to say.

7
00:00:16,000 --> 00:00:18,000
Let's enjoy the video together.

8
00:00:18,000 --> 00:00:23,000
This is probably one of the last lectures you're going to see in this course, and it's going to be

9
00:00:23,000 --> 00:00:24,000
post processing.

10
00:00:24,000 --> 00:00:29,000
I'm going to show you some of the tricks you can do to your game to make it look better.

11
00:00:29,000 --> 00:00:34,000
Then we're going to build it and upload it on a play market and rest of the things I'll leave to you.

12
00:00:34,000 --> 00:00:38,000
How to update, how to improve your game, what features to add.

13
00:00:38,000 --> 00:00:43,000
So what we're going to do now is we're going to go to Windows Click Package Manager.

14
00:00:46,000 --> 00:00:52,000
Then make sure you select Unity registry and in the search field you type post.

15
00:00:53,000 --> 00:00:55,000
Here is a post processing.

16
00:00:55,000 --> 00:00:56,000
Click install.

17
00:00:58,000 --> 00:01:06,000
All right, now let's select camera, open it and go to layers.

18
00:01:06,000 --> 00:01:07,000
Add new layer.

19
00:01:07,000 --> 00:01:11,000
We're going to call it post processing.

20
00:01:13,000 --> 00:01:18,000
Now select Cinema Machine and Main Camera and choose Post-Processing.

21
00:01:19,000 --> 00:01:23,000
Now this objects only, and then we're going to select our main camera.

22
00:01:23,000 --> 00:01:26,000
Click Add component type here post.

23
00:01:26,000 --> 00:01:29,000
And first we click Post Process layer.

24
00:01:31,000 --> 00:01:34,000
Choose layer post-processing.

25
00:01:35,000 --> 00:01:40,000
And then add another component post process volume.

26
00:01:41,000 --> 00:01:49,000
Right here we need to make sure you check is global and add new profile later on.

27
00:01:49,000 --> 00:01:53,000
If you want to find your profile is going to be in the scene folder, main scene profiles.

28
00:01:54,000 --> 00:01:55,000
All right.

29
00:01:56,000 --> 00:02:03,000
Now, from this point, it's very easy to experiment ways and find what's working for you.

30
00:02:03,000 --> 00:02:09,000
I'm just going to show you a couple of them and show you what we can do with them, and then I'll leave

31
00:02:09,000 --> 00:02:09,000
it to you.

32
00:02:09,000 --> 00:02:11,000
How to make your game look Better.

33
00:02:11,000 --> 00:02:12,000
All right.

34
00:02:12,000 --> 00:02:18,000
So first we click Add Effect Unity.

35
00:02:18,000 --> 00:02:20,000
And here are all kinds of things you can do.

36
00:02:22,000 --> 00:02:30,000
For example, you can make your game look older like it was on that machines that we use to play.

37
00:02:30,000 --> 00:02:33,000
Like, I'll put photo in here.

38
00:02:34,000 --> 00:02:35,000
So if you.

39
00:02:36,000 --> 00:02:39,000
Increased intensity of chromatic aberration.

40
00:02:40,000 --> 00:02:42,000
I'll a little bit.

41
00:02:43,000 --> 00:02:45,000
You can see how it's changing your game.

42
00:02:46,000 --> 00:02:47,000
Right.

43
00:02:50,000 --> 00:02:51,000
See that.

44
00:02:52,000 --> 00:02:53,000
So it looks differently.

45
00:02:53,000 --> 00:03:00,000
But in my opinion, we don't need this one because it goes for games that are more weird, I would say.

46
00:03:00,000 --> 00:03:07,000
All right, so let's select unity and there is grain, which is also works nice.

47
00:03:10,000 --> 00:03:17,000
There's also gives the impression of the old TV like you playing on the old TV with the game pad or

48
00:03:17,000 --> 00:03:20,000
something like those we had when we were young.

49
00:03:20,000 --> 00:03:22,000
Well, it depends on your age.

50
00:03:22,000 --> 00:03:25,000
Of course, I had those kind of games.

51
00:03:25,000 --> 00:03:26,000
What else?

52
00:03:26,000 --> 00:03:26,000
You can change.

53
00:03:26,000 --> 00:03:28,000
So I like the grain.

54
00:03:28,000 --> 00:03:29,000
You can keep it or not.

55
00:03:29,000 --> 00:03:30,000
It's up to you.

56
00:03:31,000 --> 00:03:32,000
What else you could add is a bloom.

57
00:03:32,000 --> 00:03:34,000
Bloom is very popular.

58
00:03:34,000 --> 00:03:37,000
Many, many games using it.

59
00:03:37,000 --> 00:03:40,000
And you just check all of them.

60
00:03:41,000 --> 00:03:42,000
First mode.

61
00:03:43,000 --> 00:03:45,000
Increase in density.

62
00:03:46,000 --> 00:03:52,000
And you see everything is shiny, but don't put too much of a bloom because, well, pretty simple.

63
00:03:52,000 --> 00:03:54,000
It can hurt your eyes when you play.

64
00:03:54,000 --> 00:03:54,000
Right.

65
00:03:55,000 --> 00:03:57,000
So just a little bit.

66
00:03:58,000 --> 00:04:00,000
To make it look nice and shiny.

67
00:04:01,000 --> 00:04:02,000
Something like.

68
00:04:03,000 --> 00:04:03,000
Now.

69
00:04:05,000 --> 00:04:08,000
Well, it's all about personal preference, right?

70
00:04:11,000 --> 00:04:15,000
Now I see everything is a bit shiny coins and a player

71
00:04:20,000 --> 00:04:22,000
which I feel doesn't hurt, but only makes it better.

72
00:04:23,000 --> 00:04:24,000
All right.

73
00:04:25,000 --> 00:04:26,000
There are some other effects you can add.

74
00:04:26,000 --> 00:04:30,000
Some of them doesn't work with 2D, like ambient occlusion.

75
00:04:31,000 --> 00:04:32,000
It won't work.

76
00:04:34,000 --> 00:04:38,000
But what you could use, for example, you could use wignot.

77
00:04:38,000 --> 00:04:39,000
So how could you use it?

78
00:04:39,000 --> 00:04:41,000
You could.

79
00:04:41,000 --> 00:04:43,000
I'm not sure if I spelled that correctly.

80
00:04:43,000 --> 00:04:45,000
You can make it.

81
00:04:46,000 --> 00:04:49,000
Something like this to.

82
00:04:52,000 --> 00:04:54,000
To make less vision for the player.

83
00:04:54,000 --> 00:04:55,000
Something like that.

84
00:04:55,000 --> 00:04:58,000
Well, smoothness, maybe.

85
00:04:58,000 --> 00:04:59,000
Right.

86
00:04:59,000 --> 00:05:04,000
So now when I play in this mode, it's kind of hard to see what's in front of me.

87
00:05:04,000 --> 00:05:06,000
Like it's a dark night or something.

88
00:05:06,000 --> 00:05:09,000
Has been a bit of horror feeling and it's right.

89
00:05:09,000 --> 00:05:12,000
You could use it for your horror game, like for your next game.

90
00:05:13,000 --> 00:05:14,000
But how could you use it in this game?

91
00:05:14,000 --> 00:05:21,000
For example, you can make a pick up item that player needs to jump over, and if he picks up this item,

92
00:05:21,000 --> 00:05:27,000
everything goes dark and player cannot see when he runs forward, like for some amount of time, right?

93
00:05:28,000 --> 00:05:34,000
And now I'm going to show you how to switch on or switch off this effects, and I'm going to use it

94
00:05:34,000 --> 00:05:36,000
with the example of.

95
00:05:37,000 --> 00:05:38,000
Color grading.

96
00:05:41,000 --> 00:05:44,000
So what I want to do here is I want to find some dark.

97
00:05:45,000 --> 00:05:46,000
I'm.

98
00:05:48,000 --> 00:05:48,000
Color.

99
00:05:49,000 --> 00:05:50,000
Like this.

100
00:05:50,000 --> 00:05:53,000
So when we switch it off, it's fine and switch on.

101
00:05:53,000 --> 00:05:54,000
It's like that.

102
00:05:55,000 --> 00:05:56,000
Right.

103
00:05:56,000 --> 00:05:57,000
Let's switch it off for now.

104
00:05:57,000 --> 00:06:04,000
Create new script and call it post process controller.

105
00:06:08,000 --> 00:06:10,000
Let's close all but.

106
00:06:12,000 --> 00:06:12,000
This.

107
00:06:15,000 --> 00:06:18,000
A new library using unity engine.

108
00:06:20,000 --> 00:06:21,000
Rendering.

109
00:06:22,000 --> 00:06:23,000
Past.

110
00:06:24,000 --> 00:06:28,000
Now we go down here creates create lives field.

111
00:06:29,000 --> 00:06:30,000
Try what?

112
00:06:30,000 --> 00:06:32,000
Forced process.

113
00:06:36,000 --> 00:06:36,000
Volume.

114
00:06:39,000 --> 00:06:40,000
Lost process volume.

115
00:06:42,000 --> 00:06:43,000
In the start.

116
00:06:44,000 --> 00:06:48,000
We type boss process volume equals get component of.

117
00:06:50,000 --> 00:06:52,000
Forced process.

118
00:06:52,000 --> 00:06:53,000
Volume.

119
00:06:56,000 --> 00:07:00,000
All right, now, let's do this first.

120
00:07:01,000 --> 00:07:02,000
Plus process volume.

121
00:07:02,000 --> 00:07:07,000
That profile that try get settings.

122
00:07:08,000 --> 00:07:09,000
Out.

123
00:07:10,000 --> 00:07:12,000
And we need to get access.

124
00:07:12,000 --> 00:07:13,000
To what?

125
00:07:14,000 --> 00:07:15,000
Let's see.

126
00:07:15,000 --> 00:07:19,000
Effect the color grading.

127
00:07:19,000 --> 00:07:20,000
So let's.

128
00:07:21,000 --> 00:07:23,000
Go up here.

129
00:07:23,000 --> 00:07:29,000
And create private color grading and call it color grading.

130
00:07:30,000 --> 00:07:34,000
And let's go back here and type color gradient.

131
00:07:35,000 --> 00:07:41,000
Now I want to create one boolean private bool color gradient off.

132
00:07:42,000 --> 00:07:52,000
Like that and I'll go to update and I'll type if input get key down E, code H and just do this color

133
00:07:52,000 --> 00:08:01,000
gradient of equals to not color grading off and on here, color grading active equals to color grading

134
00:08:01,000 --> 00:08:02,000
of which is boolean.

135
00:08:02,000 --> 00:08:04,000
So it's false or true.

136
00:08:04,000 --> 00:08:07,000
Now when I save this, I go back to Unity.

137
00:08:07,000 --> 00:08:09,000
First, I need to drag my script over here.

138
00:08:09,000 --> 00:08:10,000
I'll hit play.

139
00:08:11,000 --> 00:08:16,000
And when I click the button, you see what's happening.

140
00:08:17,000 --> 00:08:21,000
So I did just input on the key on purpose.

141
00:08:22,000 --> 00:08:29,000
And I'm going to show you what I can do with this, for example, to improve your game and how to implement

142
00:08:29,000 --> 00:08:29,000
that.

143
00:08:29,000 --> 00:08:30,000
I leave it up to you.

144
00:08:31,000 --> 00:08:32,000
All right.

145
00:08:33,000 --> 00:08:34,000
Look.

146
00:08:41,000 --> 00:08:45,000
And there is lots of stuff you can do with the post-processing just within the parameters playing around

147
00:08:45,000 --> 00:08:50,000
to find the best look for a game and not only for this game, but you can use it for different purposes.

148
00:08:50,000 --> 00:08:57,000
Like I said before, horror game or some puzzle game you can create pick up effects and boost effects.

149
00:08:57,000 --> 00:09:01,000
You can make your player drunk with the lens distortion.

150
00:09:01,000 --> 00:09:03,000
Just so many options.

151
00:09:03,000 --> 00:09:03,000
All right.

152
00:09:03,000 --> 00:09:05,000
See in the next video, guys.

