Skip to content

Commit

Permalink
修复车牌修改步骤图片不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nongfugengxia committed May 7, 2024
1 parent dd82974 commit 22bc642
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
24 changes: 7 additions & 17 deletions docs/custom_plate.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,39 @@

将图片直接拖至 /Game/Carla/Static/GenericMaterials/Licenseplates,右键选择创建材质

<img src="img/plate/import_photo.png" style="width: 100%;" alt="picture">
![](img/plate/import_photo.png)


**2.材质替换**

- 导肮至Carla/Blueprints/Vehicles下的目标车辆,右键选择编辑。如下图所示:

<img src="img/plate/vehicle.png" style="width: 100%;" alt="picture">
![](img/plate/vehicle.png)

- 进入车辆资产编辑界面后,双击网格体(VehicleMesh)继承,会出现车辆以及车辆所引用的资产。

<img src="img/plate/edit_vehicle.png" style="width: 100%;" alt="picture">
![](img/plate/edit_vehicle.png)


- 将车辆放大,以便查看是否修改成功。

<div style="width: 100%; text-align: center; margin: 0;">

<img src="img/plate/edit_vehicle1.png" style="width: 100%;" alt="picture">

</div>
![](img/plate/edit_vehicle1.png)



- 找到车辆车牌位置,将材路径替换为先前所准备的自定义材质。

<div style="width: 100%; text-align: center; margin: 0;">
![](img/plate/plate.png)

<img src="img/plate/plate.png" style="width: 100%;" alt="picture">

</div>

​ 这样,我们的车牌已经替换成功!回到主界面,点击编译运行,则出现我们想要的效果!
这样,我们的车牌已经替换成功!回到主界面,点击编译运行,则出现我们想要的效果!

**3.测试**

- 车牌替换成功后,将场景导出,打包成可执行文件。

- 运行python脚本在场景中添加已经被替换过车牌的车辆,调整视角,观察车牌。最后显示结果如下图所示:

<div style="width: 100%; text-align: center; margin: 0;">

<img src="img/plate/result.png" style="width: 100%;" alt="picture">
![](img/plate/result.png)

</div>

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ nav:
# - mdx_math 用于行内公式显示
markdown_extensions:
- admonition
- mdx_math
# - mdx_math

0 comments on commit 22bc642

Please sign in to comment.