carla/Docs/tuto_A_vehicle_modelling.md

110 lines
3.0 KiB
Markdown
Raw Normal View History

# How to model vehicles
2018-07-27 22:01:07 +08:00
2020-03-02 21:35:50 +08:00
---
## 4-Wheeled Vehicles
2018-07-27 22:01:07 +08:00
#### Modelling
2018-07-27 22:01:07 +08:00
Vehicles must have a minimum of 10.000 and a maximum of 17.000 Tris
approximately. We model the vehicles using the size and scale of actual cars.
The bottom part of the vehicle consists of a plane adjusted to the Bodywork.
2018-07-27 22:01:07 +08:00
The vehicle must be divided in 6 materials:
2018-07-27 22:01:07 +08:00
1. **BodyWork:**
The Bodywork includes the chassis, doors, car handle, and front and back
parts of the vehicle. The BodyWork material is controlled by Unreal Engine.
You can add logos and some details, but remember, all the details will be
painted by Unreal using the same color. Use the alpha channel if you want to
paint details with a different color.
2018-07-27 22:01:07 +08:00
2. **Wheels:**
Model the Wheels with hubcaps and add details to the tire with Substance. In
the UV, add the tires and the hubcaps separately.
2018-07-27 22:01:07 +08:00
3. **Interior:**
The Interior includes the seats, the steering wheel, and the bottom of the
vehicle. You dont need to add much detail here.
2018-07-27 22:01:07 +08:00
4. **Details:**
Lights, logos, exhaust pipes, protections, and grille.
2018-07-27 22:01:07 +08:00
5. **Glass:**
Light glasses, windows, etc. This material is controlled by Unreal.
2018-07-27 22:01:07 +08:00
6. **LicencePlate:**
2018-08-27 23:16:50 +08:00
Put a rectangular plane with this size 29-12 cm, for the licence Plate.
We assign the license plate texture.
#### Nomenclature of Material
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* M(Material)_"CarName"_Bodywork(part of car)
* M_"CarName"_Wheel
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* M_"CarName"_Interior
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* M_"CarName"_Details
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* M_"CarName"_Glass
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* M_"CarName"_LicencePlate
2018-07-27 22:01:07 +08:00
#### Textures
2018-07-27 22:01:07 +08:00
The size of the textures is 2048x2048.
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
* T_"CarName"_PartOfMaterial_d (BaseColor)
* T_"CarName"_PartOfMaterial_n (Normal)
* T_"CarName"_PartOfMaterial_orm (OcclusionRoughnessMetallic)
* **EXAMPLE**:
2018-08-27 23:16:50 +08:00
Type of car Tesla Model 3
TEXTURES
* T_Tesla3_BodyWork_d
* T_Tesla3_BodyWork_n
* T_Tesla3_BodyWork_orm
MATERIAL
* M_Tesla3_BodyWork
#### RIG
2018-07-27 22:01:07 +08:00
2018-08-27 23:16:50 +08:00
The easiest way is to copy the "General4WheeledVehicleSkeleton" present in our project,
either by exporting it and copying it to your model or by creating your skeleton
using the same bone names and orientation.
2018-07-27 22:01:07 +08:00
The model and every bone must be oriented towards positive X axis with the Z
axis facing upwards.
2018-07-27 22:01:07 +08:00
_Bone Setup:_
2018-07-27 22:01:07 +08:00
Vhehicle_Base: The origin point of the mesh, place it in the point (0,0,0) of the scene.
2018-07-27 22:01:07 +08:00
* Wheel_Front_Left: Set the joint's position in the middle of the Wheel.
2018-07-27 22:01:07 +08:00
* Wheel_Front_Right: Set the joint's position in the middle of the Wheel.
2018-07-27 22:01:07 +08:00
* Wheel_Rear_Left: Set the joint's position in the middle of the Wheel.
2018-07-27 22:01:07 +08:00
* Wheel_Rear_Left: Set the joint's position in the middle of the Wheel.
2018-07-27 22:01:07 +08:00
#### LODs
2018-07-27 22:01:07 +08:00
All vehicle LODs must be made in Maya or other 3D software. Because Unreal does
not generate LODs automatically, you can adjust the number of Tris to make a
smooth transitions between levels.
2018-07-27 22:01:07 +08:00
* _Level 0_ - Original
2018-07-27 22:01:07 +08:00
* _Level 1_ - Deleted 2.000/2.500 Tris (_Do not delete the interior and steering wheel_)
2018-07-27 22:01:07 +08:00
* _Level 2_ - Deleted 2.000/2.500 Tris (_Do not delete the interior_)
2018-07-27 22:01:07 +08:00
* _Level 3_ - Deleted 2.000/2.500 Tris (_Delete the interior_)
2018-07-27 22:01:07 +08:00
* _Level 4_ - Simple shape of a vehicle.