1. First obtain the data of the open source city
Link: https://pan.baidu.com/s/1Xmd4flFokWhqVG44D6iWZg
Extraction code: 6ugf
here I use Shenzhen
2. Start processing the data
Download QGIS (recommended to use google)
After downloading, just install it directly (you don't need to choose anything, just change the installation location)
Then open and change the language to Chinese
Then drag the .shp directly into it
then everywhere
Then click on the globe on the right
Find 3857 (the file format should also be changed to ESRI)! ! ! !
The following is the exported
Then install the plugin
Install quickosm
Then open the plugin in the options bar
This will allow you to download road information within the view range
Download completed
then export
then open blender
For the download method of GIS plug-in, see my last article
Note here that the function of Separate objects is to divide all buildings inside into objects
The function of the base surface (rounded down) in the Extrusion from field is to make each layer correspond to the height: one layer is the height of the base
You can change the z scale to 3 to make the building look taller
Blender uses shift+middle mouse button to pan the perspective
Then import road related information
Then you can import successfully
But at this time the road is just some lines and not a model, so we have to create a road model
Then select the road to convert to curve
Click on the NURBS path
At this point, the width can be zoomed (the following is the toolbar pulled out from the left)
Then export the fbx file
The next step is to use UE4
The specific operation can be seen first
Digital twin traffic simulation - Programmer Sought
Import a previously generated project
Reset to default location after import
wasd+right click to move the viewing angle (the following is to change the camera speed)
If it is too slow, you can change the scalar
Then this is the quick access to the file related location browsing