[Unity3D] Unity3D game development: Terrain creation based on Terrain Toolkit

Source: Internet
Author: User

Hello, everyone. Welcome to follow my blog. My blog address is blog.csdn.net/qinyuanpei. I will bring you the unity3dgame development series this day. Today, we will use the Terrain Toolkit to create a Terrain. Although Unity3D has provided us with a terrain rendering tool, in practical use, we found that this terrain rendering tool does not meet our requirements, because manual painting lacks the natural erosion of the terrain, the feeling of human being is too strong. After all, people cannot feel the ups and downs of the natural terrain, therefore, we recommend that you use a program to generate the terrain. Therefore, we have published this article. Next, please follow me to learn how to use this plug-in.

First, create an empty project and import the Terrain Toolkit resource package. Then, create a Terrain and line Light Direction Light in the scenario, and then add a Terrain Toolkit component for Terrain ,:


In the next class, we select Terrain and we will find that there is more content in the general Terrain attribute panel:


This is the main character of today's Terrain Toolkit. We found that it is divided from left to right into three tabs. The first is to generate the Terrain, the second is to add the erosion effect, and the third is the texture option. First, we select an effect from the first tab and click the text in the red box below. The system will automatically generate a terrain effect for us, which is a terrain effect I have generated:


We can adjust the terrain to the desired effect through repeated modifications. Therefore, you can modify parameters to observe the differences in the output results, next we will talk about the most exciting content of this plug-in, that is, it supports height pasters, that is, we can use different pasters on different heights to achieve a relatively different visual effect, we have seen some results in the above image. Next, let's take a look at how to add the texture. Click the Texture tab, and the following interface appears. I have added some textures. The important parts are marked in the following figure. The first red box is used to set the tilt angle of the map, it is the texture on the oblique back of the mountain. The second red box is used to set the display ratio of each texture, that is, the ratio of each texture to different heights. The third red box is used to modify the terrain, that is, save. This is the final terrain shown by the blogger:


To facilitate the observation of the actual terrain effect, the blogger added a first-person role controller, planted some trees on it, and added a sky box. The final effect is shown in:


Well, this is what we are talking about today. Thank you for your attention. Your encouragement is my unremitting motivation to write my blog!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.