1. Home
  2. Docs
  3. Material Generator
  4. Advanced
  5. Textures generation

Textures generation

Material Generator plugins offers multiple functions to generate textures. Each of these functions needs a Generation module as input.

 

1. Displacement map

The function GenerateDisplacementMap will generate the displacement map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateDisplacementMap function:

2. Metallic map

The function GenerateMetallicMap will generate the metallic map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateMetallicMap function:

3. Roughness map

The function GenerateRoughnessMap will generate the roughness map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateRoughnessMap function:

4. Normal map

The function GenerateNormalMap will generate the normal map from a generation module.

The color of each pixel is determined by the normal vector at this pixel. Red composant is based on the X value of the normal vector, Green composant is based on the Y value of the normal vector and  Blue composant is based on the Z value of the normal vector.

 

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateNormalMap function (this output is almost flat as you can see on the normal map):

5. Diffuse map

The function GenerateGiffuseMap will generate the normal map from a generation module.

The color of each pixel is determined by the ColorGradient (explained later).

Inputs needed:

  • Module: a Generation module
  • Color gradient: the color gradient to use to colorize the map.
  • Texture name: the output texture name.
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateDiffuseMap function using a Terrain color gradient:

Was this article helpful to you? Yes No

How can we help?