The creation and simple setting of Unity3d's own terrain system

Source: Internet
Author: User



First to create a new project, named Tankwar, the subsequent related files are placed under this folder.

After creation is a blank project with only one camera in the scene.

Ctrl+s Archive This scenario as TankWar0.1 for version control.

We click on the terrain and select Create Teerain, creating a terrain:

You can see that the default coordinates of the terrain are 0,0,0, and we adjust the camera position to observe the terrain in time.

When the camera is selected, press W to adjust coordinates, press E to rotate the transform, and press R to indent the transform.

After the adjustment the scene is a bit dark, add another light: gameobject->create other->direactional Light, create a parallel source.

Rotating the parallel light can modify its effect on the brightness of the scene, and can adjust the intensity of the light source by adjusting the intensity value to modify.

Overall effect:

Here are the settings for the terrain.

You can see many options in the Inspetor panel by clicking the terrain in the Hierachy panel.

Let us first select the first one:

This is the elevation/reduction of the terrain options, the following have different shapes of brushes to achieve the elevation and reduction of the terrain, the left mouse click is the promotion, hold down the SHIFT key and then left click is to reduce the terrain, the effect as shown:

After a rough outline, we can select the fourth option to assign a texture to the terrain.

When setting up the material, we can use Unity's own terrain material, right-click on the Project panel, select the Import package, select the terrain Assets, and bring in unity's related footage.

After the introduction can be opened to look inside the content:

We select the terrain again, select the Fourth Brush option, click on Edit textures, choose Add texture, this time there will be many options available.

After selecting a favorite material, we can add another material, select and then in the scene panel can brush the material like a brush up, in this way to paint the mountain green:

The effect is a little ugly, and indeed the program ape or do not come to the work of art, we will make a look at it.

Let's add some small things to the scene, for example, grass.

Select the Sixth button in the terrain: Paint Details.

Then add a texture, select grass, and click in the scene to place a piece of weed:

Of course you can also put a tree, choose the Fifth button, place the tree.

Add Palm textures and click in the scene to add trees.

Click to place the Grove, effect

Then Unity3d's own terrain system is simply introduced here, can be said to be relatively strong.

Of course, there is still a lot of space for us to explore.

The creation and simple setting of Unity3d's own terrain system

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.