Each material of a car must be assigned to one shader. Shaders have different purposes and therefore need different setups.
First, open the material browser in ZModeler 3.The material browser allows you to view all materials, copy or modify existing materials or create new ones.
For GTA V, all materials contain multiple textures. They have the following purposes:
- Diffuse/Detail (Diff): The basic detail texture.
- Specular (Spec): Affects the shine and reflectiveness of materials.
- Normal Map (Bump): Allows adapting normals of a model for small details without the need to modify the model itself.
- Environment Map (Env): Used to immitate rendered reflections, will not be visible in-game.
- Dirt Map (Mask): Applies dirt effects when the car gets dirty in-game.
- Burnt Map (Mask): Applies a burnt effect after a car exploded in-game.
- Snow (Mask): Applies a snow overlay for cars with snow shader variants. Used for North Yankton cars in the default game.
By default, materials will be named after the first texture assigned. While working on a model it can be easier to differentiate between materials with the same default name by temporarily changing the name. When exporting the model, all names will automatically be reset to the correct default name.
In the material browser, you can select shaders from a predefined list. For vehicles, select shaders from the Vehicle paint and the Vehicle generic categories.
After a shader has been selected, ZModeler will automatically add all necessary channels with default settings and default textures. Usually, it will only be necessary to select the textures you want to use.
For more information regarding the selection of shaders, see the table below.
To use in-game colors, the material name must end with [PAINT:X] , X being a number to select which color set to use. The color sets are set for each car in the carvariations file.
Materials need to be assigned to the corresponding model parts. Every polygon must be assigned to one material. By default, models will be assigned to the Default Material. It does not contain any textures and can't be used for GTA V.
To assign materials, select an object while in object mode or specific polygons in polygon mode. In the properties tab under Mesh > Polygons > Materials, you can select a material.
Commonly Used Shaders
* If not stated otherwise, textures use the channel UV 1.
** Environment Maps are always assigned to "Auto Sphere Environment" and don't use a specific UV map.
*** Should always be used with paint.