The whole process of offline loading application of UE4 Cesium for unreal

Reference configuration: Win10, please ensure that it is configured in a LAN environment

  1. Configure IP

Right click and select: Open "Network and Internet" settings

       Select the Change Adapter option

Please ensure that Ethernet is enabled and connected to the cable, right click and select properties

Double-click to select Internet Protocol Version 4 (TCP/IPv4)

Change the IP address to "192.101.14.48" and the subnet mask to "255.255.255.0"

Click OK on both sides

Confirm the IP setting, please press the keyboard Win + R key

Enter cmd and confirm

Enter ipconfig to check whether the ip is successfully configured

If it is successfully configured, start the next step

  1. Configure local server

Click to enter nginx, and click conf

Open nginx.conf from Notepad

Configure the port (the value behind listen in the figure) to 8000, and the ip (the value behind server_name in the figure) to 192.101.14.48

Please set the name of the terrain file with xml to ST

Set the filename of the .json file to Shate_Shape

Save the two terrain files in the file directory named 2238GMap

Change the location behind root to

save the file

Double-click to open nginx.exe, the nginx.exe file needs to be opened every time the local terrain is loaded in the future

Then open HermesEo.exe and the terrain will be generated

Click this variable to be false, otherwise the pitch angle will be incorrect

After receiving the latitude and longitude and Euler angle data through communication

Connect the component to the aircraft to be flown

Set up the component inside the constructor

Because I am afraid of losing precision, I use opengl's double vector to represent the latitude and longitude

Then call this function continuously on the plane to adjust the latitude and longitude position

that's it

Guess you like

Origin blog.csdn.net/qqQQqsadfj/article/details/132118126