Skip to content

Commit

Permalink
添加cesium操作步骤
Browse files Browse the repository at this point in the history
  • Loading branch information
nongfugengxia committed Aug 11, 2024
1 parent 126aae6 commit 17cf8fe
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 2 deletions.
35 changes: 35 additions & 0 deletions docs/adv_cesium.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 倾斜模型导入Carla

1. 下载并解压 [Cesium for Unreal 插件](https://github.com/CesiumGS/cesium-unreal/releases/download/v1.18.0-ue4/CesiumForUnreal-426-v1.18.0-ue4.zip) 到CarlaUE引擎的plugins文件夹下:

![](img/cesium/plugins.png)

2. 将插件的BuildId修改与CarlaUE引擎的BuildId一致。
引擎的BuildId在如下路径:

![](img/cesium/build_id_path.png)
需修改的BuildId
![](img/cesium/require_modified_build_id.png)

3. 本地测试还需要修改其他几个内置插件的BuildId也要与引擎的一致。有如下几个地方:
```shell
carla_unreal\unreal\Engine\Plugins\Experimental\Landmass\Binaries\Win64
carla_unreal\unreal\Engine\Plugins\Experimental\Water\Binaries\Win64
carla_unreal\unreal\Engine\Plugins\Editor\BlueprintMaterialTextureNodes\Binaries\Win64
```

4. 在CarlaUE中添加插件
![](img/cesium/plugins_menu.png)
![](img/cesium/add_plugin.png)
添加完成后重启引擎。

5. 添加插件对象到场景中,配置参数和模型路径:
![](img/cesium/add_plugin_object.png)
![](img/cesium/config_parameter.png)
![](img/cesium/config_model_path.png)

!!! 注意:
[链接](https://pan.baidu.com/s/1n2fJvWff4pbtMe97GOqtvQ?pwd=hutb) 中的`map`文件夹内下载`中电软件园_cesium_model.zip`并解压。这里测试用的是本地路径,也可以用静态资源服务。

6. 模型在CarlaUE中的场景效果
![](img/cesium/scene_effect.png)
Binary file added docs/img/cesium/add_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/add_plugin_object.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/build_id_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/config_model_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/config_parameter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/plugins_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/require_modified_build_id.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cesium/scene_effect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ Carla 论坛</a>

[__OpenSCENARIO 播放器__](tuto_G_esmini.md) — 基本的 OpenSCENARIO 播放器。

[__地理空间生态系统__](adv_cesium.md) — 将 3D 地理空间生态系统引入虚幻引擎。


## 源代码编译

Expand Down
4 changes: 2 additions & 2 deletions docs/tuto_D_windows_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ install_boost.bat --build-dir D:\work\buffer --toolset msvc-14.2 --version 1.80.
会自动将boost的库和头文件安装到目录`D:\work\buffer\boost-1.80.0-install`里面。

[`install_recast.bat`](https://github.com/carla-simulator/carla/blob/dev/Util/InstallersWin/install_recast.bat) 中的`Relase`改为`Debug`
`-DCMAKE_CXX_FLAGS_RELASE="/MD /MP"`改为`-DCMAKE_CXX_FLAGS_DEBUG="/MDd /MP"`,运行[`install_recast.bat`](https://github.com/OpenHUTB/carla_doc/tree/master/src/cmake/install_recast.bat)
`-DCMAKE_CXX_FLAGS_RELASE="/MD /MP"`改为多线程调试DLL`-DCMAKE_CXX_FLAGS_DEBUG="/MDd /MP"`,运行[`install_recast.bat`](https://github.com/OpenHUTB/carla_doc/tree/master/src/cmake/install_recast.bat)
```shell
install_recast.bat --build-dir D:\work\buffer --generator "Visual Studio 16 2019"
```

[`install_rpclib.bat`](https://github.com/carla-simulator/carla/blob/dev/Util/InstallersWin/install_rpclib.bat) 中的`Relase`改为`Debug`,运行[`install_rpclib.bat`](https://github.com/OpenHUTB/carla_doc/tree/master/src/cmake/install_rpclib.bat)
`-DCMAKE_CXX_FLAGS_RELASE="/MD /MP"`改为`-DCMAKE_CXX_FLAGS_DEBUG="/MDd /MP"`
`-DCMAKE_CXX_FLAGS_RELASE="/MD /MP"`改为多线程调试DLL`-DCMAKE_CXX_FLAGS_DEBUG="/MDd /MP"`
```shell
install_rpclib.bat --build-dir D:\work\buffer --generator "Visual Studio 16 2019"
```
Expand Down

0 comments on commit 17cf8fe

Please sign in to comment.