UE4 digital twin material (4)

Open UE4

UE4 specific new project operation is here

Digital Twin Traffic Simulation (1) Find the city you need on this website (it is recommended to use google), select the area and click export to download (if the area is too large, it will not be able to be exported) 2. Download blenderBlender download and Chinese – Blender Chinese Community https:/. https://blog .csdn.net/weixin_50920579/article/details/122936226?spm=1001.2014.3001.5501

 Then click the content

 Right key Alt+left key Alt+middle key is to change the view

It is recommended to create a new pipe card directly below. The new level above will have some default configurations that are inconvenient.

Then click don't save

 

 pull three things in

 Then open the Details tab

 Change the light source of the sky sphere

 At this point, changing the light source will display the corresponding effect

 When the light goes up at 90 degrees, it is actually night.

Click Refresh Material

It can be seen that it is displayed as night at this time

 Pull an object and plane to see that there is a shadow at this time

Spaces are toggle operations (translation, rotation, scaling)

 Then delete the cube and plane

Create a new folder below and pull in what you did before C4D

Digital twin material transformation ( 3 ) ?spm=1001.2014.3001.5501

 

 When importing a road, pay attention to check it to prevent it from being stuck as shown below

 When importing terrain maps, you can directly reset them all to default.

 After importing, select all models and import them into the scene (do not select materials or textures)

The trick is to first select the last one such as highways and then hold down shift to select the first model

 Then select all the models just imported to reset the position

 Create a folder with all models selected (the folder icon in the upper right corner)

 then make it night

 Next is the material

selected building

 Double click on the material

In the editor, right-click to move the view

 Press and hold Alt + Left button on that connection to cancel

 Right-click search vector

Just click the first one

 add another constant

 Add another 2D vector

 Or press and hold the number keys 1, 2, 3 + the left mouse button, and one, two, and three-dimensional vectors will appear.

change one dimension to 1

 Double-click the three-dimensional one to turn it blue, click OK, and then click again, it will turn into the following image

 Then make a drag connection

 Let's first introduce the function

The second one is to use one-dimensional vector connection for metallic feeling, which is to give the model the corresponding metallic feeling.

Color needs to be represented by a three-dimensional vector (because it is three dimensions of rgb)

 Add a self-illuminating color building here and it will glow

 If you want to increase the luminous intensity, drag another one from the node and enter*

 Make the glow effect ten times stronger

 The effect after saving is as follows (the following is the enhanced lighting effect)

 At this time, if you want to become striped and glow, multiply it by a texture

The following is the texture I drew myself, which can be used in screenshots

 From a programming point of view, it means that the black multiplied by the color in the material is the non-luminous part. Black represents multiplied by 0, and white represents multiplied by 1.

 add one more function

 The function of this api is to scale the distribution of materials on the model

I changed the v-tile to 2, and it is denser in the v-axis (i.e. the y-axis direction)

Panner This is to make the material scroll on the corresponding interface

 Converted to parameters to facilitate calling from the outside world

 Create a material instance to facilitate the next direct call

Now create a material for the previous lattice 

 Drag the created bare material directly to the right

 Then adjust the road material

Note that the road must have a height (position z), a width and a length (x, y)

 Remember to save the project (Save all options below)

Otherwise it's gone

Finally, optimize the sky scene

First, mention the sky ball material downloaded from the official website

Link: https://pan.baidu.com/s/1nxHhR6icqxgIvy05CMniAg 
Extraction code: 2f28 
-- sharing from Baidu Netdisk Super Member V4

After decompression, copy it into the project (my location is F:\Documents\Unreal Projects\SZ_change\Content)

Then enter ue4 to select the content and enter the selection path

 Click on the content of this parent directory

 Click on it in the order of the directory to find this sky ball

Then the location resets to default

Delete the previous sky ball

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324345123&siteId=291194637