diff --git a/docs/adv_cesium.md b/docs/adv_cesium.md new file mode 100644 index 00000000..e1cfac88 --- /dev/null +++ b/docs/adv_cesium.md @@ -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) diff --git a/docs/img/cesium/add_plugin.png b/docs/img/cesium/add_plugin.png new file mode 100644 index 00000000..50393f5d Binary files /dev/null and b/docs/img/cesium/add_plugin.png differ diff --git a/docs/img/cesium/add_plugin_object.png b/docs/img/cesium/add_plugin_object.png new file mode 100644 index 00000000..1c884d30 Binary files /dev/null and b/docs/img/cesium/add_plugin_object.png differ diff --git a/docs/img/cesium/build_id_path.png b/docs/img/cesium/build_id_path.png new file mode 100644 index 00000000..688a8a26 Binary files /dev/null and b/docs/img/cesium/build_id_path.png differ diff --git a/docs/img/cesium/config_model_path.png b/docs/img/cesium/config_model_path.png new file mode 100644 index 00000000..7ec3f19d Binary files /dev/null and b/docs/img/cesium/config_model_path.png differ diff --git a/docs/img/cesium/config_parameter.png b/docs/img/cesium/config_parameter.png new file mode 100644 index 00000000..fb10b242 Binary files /dev/null and b/docs/img/cesium/config_parameter.png differ diff --git a/docs/img/cesium/plugins.png b/docs/img/cesium/plugins.png new file mode 100644 index 00000000..4db32a50 Binary files /dev/null and b/docs/img/cesium/plugins.png differ diff --git a/docs/img/cesium/plugins_menu.png b/docs/img/cesium/plugins_menu.png new file mode 100644 index 00000000..233e6025 Binary files /dev/null and b/docs/img/cesium/plugins_menu.png differ diff --git a/docs/img/cesium/require_modified_build_id.png b/docs/img/cesium/require_modified_build_id.png new file mode 100644 index 00000000..1dd5c58d Binary files /dev/null and b/docs/img/cesium/require_modified_build_id.png differ diff --git a/docs/img/cesium/scene_effect.png b/docs/img/cesium/scene_effect.png new file mode 100644 index 00000000..0e116e5d Binary files /dev/null and b/docs/img/cesium/scene_effect.png differ diff --git a/docs/index.md b/docs/index.md index 11579ca1..78e873fb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -219,6 +219,8 @@ Carla 论坛 [__OpenSCENARIO 播放器__](tuto_G_esmini.md) — 基本的 OpenSCENARIO 播放器。 +[__地理空间生态系统__](adv_cesium.md) — 将 3D 地理空间生态系统引入虚幻引擎。 + ## 源代码编译 diff --git a/docs/tuto_D_windows_debug.md b/docs/tuto_D_windows_debug.md index da8b7814..ec6b0375 100644 --- a/docs/tuto_D_windows_debug.md +++ b/docs/tuto_D_windows_debug.md @@ -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" ```