carla/Docs/epic_automotive_materials.md

48 lines
1.8 KiB
Markdown
Raw Normal View History

2018-03-22 01:16:56 +08:00
<h1>How to link Epic's Automotive Materials</h1>
2017-10-28 01:25:43 +08:00
2018-03-22 01:16:56 +08:00
!!! important
Since version 0.8.0 CARLA does not use Epic's _Automotive Materials_ by
default. However, you can still enable them if you compile from source.
Epic Game's provides a set of realistic _Automotive Materials_ free to use. In
this document we explain how to download and link these materials to our
vehicles for a more realistic car paint.
2017-10-28 01:25:43 +08:00
Download from Marketplace
-------------------------
Epic Games' [Automotive Materials][automatlink] package can be downloaded for
free from the Unreal Engine Marketplace.
2017-11-13 21:01:55 +08:00
!!! note
Unfortunately, Unreal's Marketplace is only available on Windows, so you
need a Windows machine to download this package.
2017-10-28 01:25:43 +08:00
1. Install Epic Games Launcher from [www.unrealengine.com](https://www.unrealengine.com).
2. Buy the [Automotive Materials][automatlink] package for $0.
3. Create a new dummy project and add the Automotive Materials package to it.
4. Inside the "Content" folder of the newly created project, you can find the
"AutomotiveMaterials" folder. Copy this folder to the CARLA project
2017-10-28 01:25:43 +08:00
- `{NewProject}/Content/AutomotiveMaterials` --> `{CARLA}/Unreal/CarlaUE4/Content/AutomotiveMaterials`
[automatlink]: https://www.unrealengine.com/marketplace/automotive-material-pack
Manually link the materials
---------------------------
Right after opening the project, you should link the automotive materials you
just downloaded.
2017-11-09 17:28:00 +08:00
In the content browser, go to
"Content/Static/Vehicles/GeneralMaterials/MaterialRedirectors" and open
"RedirectorInstance".
2017-10-28 01:25:43 +08:00
![Unreal Engine Screenshot 1](img/materials_screenshot_00.png)
Under the "Details" pane, search for the "Parent" material, and replace
"DummyCar" material by "M_Carpaint" material.
![Unreal Engine Screenshot 2](img/materials_screenshot_01.png)
Now save "RedirectorInstance", and you are ready to go.