1
00:00:00,006 --> 00:00:01,006
- [Instructor] Hi, I'm George Mastry.

2
00:00:01,006 --> 00:00:02,009
If you're familiar with Unity,

3
00:00:02,009 --> 00:00:05,007
you probably know how to create terrain,

4
00:00:05,007 --> 00:00:10,006
but Unity has updated its terrain tools very recently.

5
00:00:10,006 --> 00:00:12,009
Now, these are still a preview release,

6
00:00:12,009 --> 00:00:15,002
but I thought I would show them to you

7
00:00:15,002 --> 00:00:16,008
so that you can get used to them,

8
00:00:16,008 --> 00:00:19,008
because they will become a part of Unity.

9
00:00:19,008 --> 00:00:23,003
So if you want to start off in the package manager,

10
00:00:23,003 --> 00:00:25,004
and there is a terrain tools.

11
00:00:25,004 --> 00:00:29,000
Now, I am recording in 3.02.

12
00:00:29,000 --> 00:00:31,009
You may have a later version for yourself,

13
00:00:31,009 --> 00:00:33,007
or it may be out of preview.

14
00:00:33,007 --> 00:00:38,001
So, that's what I'm using, and so I've already installed it.

15
00:00:38,001 --> 00:00:41,006
Now, when you install it, there's also this button here

16
00:00:41,006 --> 00:00:43,009
that says download asset samples.

17
00:00:43,009 --> 00:00:47,004
And when you do that, it basically brings up this window

18
00:00:47,004 --> 00:00:51,001
in the Unity store, and you can download those

19
00:00:51,001 --> 00:00:52,009
and install them, and I already have,

20
00:00:52,009 --> 00:00:54,005
and it includes a number of different

21
00:00:54,005 --> 00:00:57,008
brushes and textures that will help you get started

22
00:00:57,008 --> 00:01:00,003
with this really cool new tool.

23
00:01:00,003 --> 00:01:02,003
So go ahead and install everything,

24
00:01:02,003 --> 00:01:06,006
and then we'll go ahead and create some terrain.

25
00:01:06,006 --> 00:01:09,005
So we can create terrain in one of two ways.

26
00:01:09,005 --> 00:01:11,003
We can use the old fashioned way.

27
00:01:11,003 --> 00:01:15,000
So we can go into game object, 3D object, terrain,

28
00:01:15,000 --> 00:01:16,008
and create it that way.

29
00:01:16,008 --> 00:01:19,002
But we have a new window here.

30
00:01:19,002 --> 00:01:23,008
Under window, we have terrain, terrain toolbox.

31
00:01:23,008 --> 00:01:28,008
This allows us to create a new terrain of a custom size,

32
00:01:28,008 --> 00:01:31,005
allows us to tile that terrain.

33
00:01:31,005 --> 00:01:33,008
We can also import things such as height maps

34
00:01:33,008 --> 00:01:35,003
with that terrain.

35
00:01:35,003 --> 00:01:37,009
Now, when we create the terrain, it's going to create

36
00:01:37,009 --> 00:01:40,002
its own subfolder for all the terrains

37
00:01:40,002 --> 00:01:42,003
under assets slash terrain.

38
00:01:42,003 --> 00:01:43,009
If you want, you can change that.

39
00:01:43,009 --> 00:01:45,009
I'm going to leave it as it is.

40
00:01:45,009 --> 00:01:49,002
Then we can also change our terrain settings.

41
00:01:49,002 --> 00:01:51,003
If we want to, we can go into basic settings

42
00:01:51,003 --> 00:01:54,005
and basically just change whatever we want

43
00:01:54,005 --> 00:01:56,006
to make the terrain exactly the way we want.

44
00:01:56,006 --> 00:01:58,008
We also have some utilities,

45
00:01:58,008 --> 00:02:02,002
and some visualization modes as well.

46
00:02:02,002 --> 00:02:04,009
So I'm just going to start off with create new terrain,

47
00:02:04,009 --> 00:02:06,007
and let's go ahead and hit create.

48
00:02:06,007 --> 00:02:10,000
So I'm just going to leave it at the defaults of 500,

49
00:02:10,000 --> 00:02:14,002
and we're going to create it at the origin.

50
00:02:14,002 --> 00:02:17,008
So when I do, it creates this terrain.

51
00:02:17,008 --> 00:02:20,003
Now, a terrain is basically just a blank pallette

52
00:02:20,003 --> 00:02:22,009
onto which we can sculpt the terrain.

53
00:02:22,009 --> 00:02:25,007
So it also creates this terrain group,

54
00:02:25,007 --> 00:02:27,007
and then in that terrain group,

55
00:02:27,007 --> 00:02:30,008
you can paint into the terrain.

56
00:02:30,008 --> 00:02:33,006
Now, there's a couple of buttons here in the terrain.

57
00:02:33,006 --> 00:02:36,004
If we go into the inspector, you'll see we have

58
00:02:36,004 --> 00:02:38,008
the ability to create neighboring terrain.

59
00:02:38,008 --> 00:02:41,001
So if I click on one of these edges,

60
00:02:41,001 --> 00:02:43,002
it creates another terrain.

61
00:02:43,002 --> 00:02:45,004
Now, I don't really need that, but if you want to create

62
00:02:45,004 --> 00:02:47,006
a bigger space, you can certainly add in

63
00:02:47,006 --> 00:02:51,003
as many terrains as you feel is necessary.

64
00:02:51,003 --> 00:02:52,008
But we're going to focus a little bit more

65
00:02:52,008 --> 00:02:55,003
on painting and sculpting terrain.

66
00:02:55,003 --> 00:02:57,007
So we've got a number of tools here.

67
00:02:57,007 --> 00:03:01,002
We have sculpt tools, we have effects, we have stuff

68
00:03:01,002 --> 00:03:04,000
like erosion, but probably the most important one

69
00:03:04,000 --> 00:03:06,001
is raise or lower terrain.

70
00:03:06,001 --> 00:03:07,004
So you want to select that,

71
00:03:07,004 --> 00:03:08,009
and then we have a number of brushes.

72
00:03:08,009 --> 00:03:11,003
Now, some of these brushes came in with that pack

73
00:03:11,003 --> 00:03:14,003
that we installed, so I'm going to go ahead and just select

74
00:03:14,003 --> 00:03:15,008
one of the default brushes here,

75
00:03:15,008 --> 00:03:19,006
which is basically just this kind of circle shape.

76
00:03:19,006 --> 00:03:21,004
And as you can see, as I hover over it,

77
00:03:21,004 --> 00:03:22,007
it gives you kind of an impression

78
00:03:22,007 --> 00:03:24,007
as to what that brush will do.

79
00:03:24,007 --> 00:03:28,003
Now, the brush itself has a brush strength,

80
00:03:28,003 --> 00:03:30,006
as well as jitter.

81
00:03:30,006 --> 00:03:32,004
We also have a brush size,

82
00:03:32,004 --> 00:03:34,001
so you can change the brush size here.

83
00:03:34,001 --> 00:03:36,005
So if I want a bigger brush or a smaller brush,

84
00:03:36,005 --> 00:03:38,000
I can do that.

85
00:03:38,000 --> 00:03:41,001
Now, if I want, I can also just click on it,

86
00:03:41,001 --> 00:03:43,004
and it will go ahead and make it that size.

87
00:03:43,004 --> 00:03:46,007
If I click and hold and drag, you'll see that it basically

88
00:03:46,007 --> 00:03:48,009
makes it bigger and bigger.

89
00:03:48,009 --> 00:03:51,002
Now, I have a number of really cool brushes here

90
00:03:51,002 --> 00:03:53,000
that I can use, so if I want to,

91
00:03:53,000 --> 00:03:56,003
I can create some mountains here.

92
00:03:56,003 --> 00:03:58,008
So I'm really just selecting these tools at random,

93
00:03:58,008 --> 00:04:03,001
and you can kind of see how they work.

94
00:04:03,001 --> 00:04:06,008
And I can start to paint my terrain the way that I want.

95
00:04:06,008 --> 00:04:10,005
Now, if I want to go back and modify it, I can.

96
00:04:10,005 --> 00:04:12,003
I can select the tool here,

97
00:04:12,003 --> 00:04:16,004
and if I hold down the control key.

98
00:04:16,004 --> 00:04:19,003
it will go ahead and kind of lower that terrain.

99
00:04:19,003 --> 00:04:21,009
Or basically, it's kind of like the erase key.

100
00:04:21,009 --> 00:04:23,004
And if I just left click,

101
00:04:23,004 --> 00:04:26,001
it'll go ahead and raise that terrain.

102
00:04:26,001 --> 00:04:29,002
Now, some of this is going a little bit out of control,

103
00:04:29,002 --> 00:04:32,005
so what we want to do is keep our brush strength fairly low,

104
00:04:32,005 --> 00:04:34,008
especially if you're working with a mouse.

105
00:04:34,008 --> 00:04:37,005
Now, if you're working with a pen or something like that,

106
00:04:37,005 --> 00:04:41,001
or some sort of WACOM tablet, then you'll have a little bit

107
00:04:41,001 --> 00:04:43,005
more control with the pressure.

108
00:04:43,005 --> 00:04:45,006
Now, in addition to raising and lowering terrain,

109
00:04:45,006 --> 00:04:47,006
we can also smooth that terrain.

110
00:04:47,006 --> 00:04:50,008
And again, that brush strength is really important.

111
00:04:50,008 --> 00:04:52,007
I tend to set mine fairly low

112
00:04:52,007 --> 00:04:55,004
and then just go over it a few times.

113
00:04:55,004 --> 00:04:59,001
Now, we also have the ability to add in

114
00:04:59,001 --> 00:05:01,004
all sorts of effects, so if I want to,

115
00:05:01,004 --> 00:05:04,003
I can create what's called a terrace.

116
00:05:04,003 --> 00:05:07,000
So by going along this edge here,

117
00:05:07,000 --> 00:05:08,008
you can see that it's creating kind of, like,

118
00:05:08,008 --> 00:05:12,008
a terraced hillside effect, which is kind of neat.

119
00:05:12,008 --> 00:05:16,000
I can create effects, so if I wanted to,

120
00:05:16,000 --> 00:05:18,000
I can sharpen the peaks.

121
00:05:18,000 --> 00:05:19,004
Let's say I do that on this one.

122
00:05:19,004 --> 00:05:21,006
It's basically sharpening that.

123
00:05:21,006 --> 00:05:26,006
I can flatten a slope, so that's basically, and again,

124
00:05:26,006 --> 00:05:28,007
I want to keep my brush strength fairly low on this,

125
00:05:28,007 --> 00:05:31,008
but what I can do is I can kind of slope that out

126
00:05:31,008 --> 00:05:35,008
to kind of make a sort of erosion sort of effect.

127
00:05:35,008 --> 00:05:38,004
And we also have erosion effects, so if I want to,

128
00:05:38,004 --> 00:05:41,000
I can create, like, a hydraulic effect.

129
00:05:41,000 --> 00:05:45,005
So there's a number of different tools that you can use.

130
00:05:45,005 --> 00:05:50,000
So as you can see, Unity's new terrain tools are very robust

131
00:05:50,000 --> 00:05:52,007
and they really allow you to sculpt the terrain

132
00:05:52,007 --> 00:05:54,007
exactly the way that you want.

