Muti-materials on a single object with Substance Painter

From TrainzOnline
Revision as of 02:35, 10 December 2019 by Vincentrh (Talk | contribs)

Jump to: navigation, search

Page under construction !

Substance Painter (hereafter referred as SP) is a very powerful tool to create realistic textures for your models. But it suffers from two limits.

The first one occurs when on a single object, you want to apply several materials. SP will then export as many set of texture files (albedo, parameters and normal) as there are materials. Yet you only need one albedo file, one normal file,... Luckily, there is a way to work around the problem : this solution is explained in a first section of this 'How To'.

If you apply the proposed solution, you will then encounter the second limit of SP : when you use a 'smart mask' on a specific material, this mask will affect ALL the used materials. This time also, there is a solution, exposed in the second part of this 'How To'.


Several materials on a single object, but only one set of exported texture files

Imagine a house you have just modeled with DSMax or Blender. It's a single object. To texture it, you will apply a 'roof tiles' material on the roof, a 'plaster' material on the wall, etc... SP will export as many set of texture files that there are materials : 'roof tile' albedo, 'plaster' albedo, 'rooftiles' normal, 'plaster' normal, ....

If we want to export just one set of texture file, what shall we do ?


Here is our house. All faces are supposed to have been developped (UVW process).

Img78 bis.jpg


If you work with Blender, follow these steps...

1 : Choose the mode : VertexPaint

2 : Click on Select Box

3 : Select all the walls of the house

Img79.jpg


On the righthand of your screen, select 'Active Tool...'

Img80.jpg


Select a color on the 'Color Picker' and press Shift+k : the walls take on the colour you have chosen.

Img81.jpg


Repeat this procedure to color the roof with an other colour...

Img82.jpg


Export the house in FBX format and open Substance Painter.

In SP, open your project : File/New/Select... the FBX export file of the house.

Once the house appears on the screen, open the 'Texture Set Settings' tab and click on 'Bake Mesh Maps'

Img83.jpg


Once the process is completed, you can observe the result, in particular the ID map : the UV development of the walls (blue in our example) is clearly well separated from the development of the roof (in red).

Img84.jpg


Apply now a material of your choice on the walls, and then on the roof. To do this, CTRL+drag the material from the shelf towards the desired part of the model. By doing so, you will see that the model (the house) becomes colored with the colors choosen with the 'Vertex Paint' process. This is very helpful to precisely select the zone to be textured.

Img85.jpg


Here is the result :

Img86.jpg


Export now the texture. Don't forget to carefully choose the good 'Config' : Trainz2019 (to see in detail the export settings for Trainz : Substance Painter Export Preset )

And...Hurrah!...there is only one set of texture files : albedo + parameters+normal.

Img87bis.jpg


The 'albedo' file with its two materials (there could be many more) :

Img88.jpg

Personal tools