Creates scene roaming in unity3d.
1. First, prepare the model in 3D software. I found a house made by Maya.
Note: I am using the ratio of the real world. The measurement tool next to it is 1000 cm and 10 meters high.
2. Export an fbx file.
Note: Check the smooth group output. The unit is centimeter and the Y axis is facing up.
3. Create a new unity project:
Select the resource packages that you will use in the future. For example:
Character controller. unitypackage (this contains a first-person control and a third-person control .)
Participant. unitypackage
Skyboxes. unitypackage sky box
Terrain assets. unitypackage terrain material package
Alternatively, you can create an empty project and open the. unitypackage files in the program filesunityeditorstandard packages directory. The effect is the same.
4. Drag the fbx file and texture over the mouse. The table tells me that you can drag and drop the image with the mouse.
My fbx file name is building01, and the texture is put in the textures directory. This directly drag the texutres directory in.
5. Drag building01 into the hierarchy column or directly drag it into the editing window. The difference is that one is automatically placed at, and the other is automatically placed at your mouse.
6. Create a terrain:
Terrain-> Create terrain creation, terrain-> set resolution set the terrain parameters, width, height, and long red lines.
7. Click the terrain, select the paint texture brush, click Edit textures, select a texture from the project bar to the position 4, and click Add. Then click it !!! The tree and grass are also created using the same process, and the grass is also dragged onto the map,
The tree is a ready-to-use Prefab. You can use the tree, grass, stone, and terrain maps in the next terrain resource package on the unity official website for free !!! Unity also has a built-in tool similar to speedtree. You can use it to make the desired tree and adjust the shape easily. If you are interested, you can study it on your own.
8. Click gameobject-> create other-> directional light to establish the direction light. Select soft shadow type !! Yes
When you see the shadow, try to adjust other colors and intensity parameters.
Note: Only the Pro version can enable the light and shade effect. The free version does not have this function. You cannot generate a running file.
9. Now let someone go in and run.
Select either the first person or the third person. This is from the character controller. unitypackage resource package.
Do not forget to check this resource package !!
It's really convenient. Unity has prepared a lot of things for you. For more details, click the link below.
Http://www.gopedu.com/course/30
Create basic terrain (creating mountains, rivers, mountains, arts, trees, and grass); Set terrain (setting trees, grass, wind, and landscape ); add effects to terrain (add fog, sky box, shadow, and small map)
Development of unity3d games-creation of roaming scenarios