In this tutorial you will learn more about entities and how to modify a Box entity to make a ground or floor for your game’s scenes. You will also learn how to use materials to give 3D objects some colour and apply detailed patterns and textures using assets.
A repeating grass pattern image like the one shown in this tutorial can be downloaded from here.
Tip: You can do a Google Images search for textures and patterns using keywords such as “brick pattern tiled”, “repeat brick pattern” or “brick pattern seamless”.
This tutorial explains how to add terrain to your 3D game environment in Unity. You will also learn how to edit the terrain and add textures to it, as well as how to add trees, shrubs, grass and water to the terrain.
To add textures, trees, grass and water to your terrain, you will need to import assets into your Unity project – this is also covered in the video. Scroll down the page to watch the video.
After watching this video, you will see just how easy it is to add terrain to your game environment like in the examples above.
If you find that Unity is running very slow, then reduce the amount of trees and grass in the environment. Lots of grass and trees can make Unity run slower. Note that the environment will not be fully rendered in Scene or Game view so the quality will not appear as high as it will be in the fully rendered game.
The image below shows how grass is rendered in front of a player in first person view.
This video tutorial explains how to create materials in Unity so that you can change the colour of 3D objects. The video also explains how to use shaders and image textures textures in Unity.
Before you watch the video, here is a brief rundown of the differences between materials, shaders and textures:
Materials contain properties and textures. Materials can be directly applied to a 3D object.
Shaders dictate which properties and which textures that a material can have. Shaders are not directly applied to models but are instead applied to materials.
Textures are also applied to materials. Textures are flat images that can be wrapped around 3D objects. These images often contain repeating patterns such as a brick wall.
The images below show three different materials. The first material has a standard shader applied to it. The second material has a specular shader applied to it for increased shininess. The third material has a diffuse shader and a brick wall texture applied to it.