Join Sue Blackman for an in-depth discussion in this video Painting the topography, part of Unity 3D: 3.5 Essential Training.
In this video, we'll be using the first three terrain editor tools to create some topography. Let's select the terrain and get started. In the Inspector, move the cursor over the toolbar to see the tooltips for each tool. We're going to be using the first three. So let's use the first one, raise and lower the terrain height. I'm going to zoom out so I can see all of my terrain to start. As you can see, there are lots of brushes to start with. We may as well start with the default, but let's adjust the size of the brush before we get going.
And I'm going to make it large so we can see it and when I bring it into the viewport, you can see it goes blue. This shows the brush size. We'll go ahead and start painting by holding the mouse button down-- that's the left mouse button-- and moving the mouse around. The Opacity setting controls the strength of the brush, so I'm going to reduce it a bit. Now when I paint, the results are not so drastic. You can also see that painting is additive. If we keep painting over something, it gets higher and higher.
Let's check out a few of the other brushes. Many are very good at adding texture to the terrain when the opacity is quite low. Let's try this one. A simple click gives kind of a nice result. You may have noticed that when you first click with the brush the texture has more definition than after you let go. Unity's Terrain Editor has a built- in LOD, or Level of Detail, feature. Not only is the terrain polygon resolution adjusted for the features we paint on it, it's dynamically adjusted according to the distance from the camera.
As you get further away, the terrain mesh is reduced. Most meshes show their wireframes when selected, but the terrain mesh does not. To see what's going on with it, we can change the viewing mode to Tex-Wire. Now you can see the resolution increase when you zoom in and out, as well as when you paint. Let's set the viewing back to Textured and try some depressions.
For depressions we hold the Shift key down. And that is also additive, but it will bottom out at the 100 meters that we set in the flattened heightmap. The next tool over is the Set Height tool. This one allows you to specify height limits within the maximum height we set when we set first set up the terrain. Under the height, you can see that the range will top out at 400 meters, the height we specified. This one though I'm going to set to about just over a hundred and now when I paint, we'll get a nice low plateau.
You can also find out where you are on this one. With the Set Height tool when you hold your Shift key, it will sample the height range that your cursor is over. So if we watch over in the Inspector and I move my cursor over this mountain peak and click Shift, then it sets it to whatever height that was. So it's an easy way to find out how high you are before you start painting again. Note that the brush size and opacity are retained between these two tools.
The next tool is the Smooth Height tool, perfect for softening edges of jagged peaks left over from the other tools. So here is the relax. And if we turn the Opacity up, you'll see much more result here. Then it sort of lowers and flattens things. If you have gone beyond the point of no return, like I sometimes do, feel free to flatten the heightmap again for a clean slate. And we'll set this to 100 again and Flatten.
We still need our terrain, so I'm going to press Control+Z to get it back again. In the next video we'll start painting textures on our terrain.
- Understanding game and level design theory
- Organizing your project in Unity
- Creating and transforming objects
- Setting up the geometry
- Painting in terrain, textures, and trees
- Adjusting the render settings
- Importing terrains
- Creating a first-person controller
- Creating materials and shaders
- Lighting the game
- Working with cameras and multiple views
- Animating characters and assets
- Creating fire with particle systems
- Managing the GUI (graphical user interface)
Skill Level Beginner
1. Exploring Unity 3D
2. Exploring the Terrain Editor
3. Creating the Environment
Publishing project settings3m 37s
4. Introducing Unity Scripting
5. In-Game Scripting
6. Working with GameObjects and Components
7. Exploring Prefabs
8. Using Imported Assets
9. Understanding Lighting
10. Keyframing Animation
11. Animating Skinned Meshes and Controlling Characters
12. Working with Cameras and Layers
13. Creating Game GUIs
14. Extra Techniques and Features
What's next1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.