Difference between revisions of "Default Shader 4.5"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(Created new documentation page for Default Shader 4.5. Added GUI images and setting labels.)
 
m (Added overview description.)
Line 2: Line 2:
 
<br />
 
<br />
 
== Overview ==
 
== Overview ==
 +
The Default shader node forms the basis for object surface mapping.  It can provide base colours or load external images, as well as allowing control over translucency, luminosity, specular effects, displacement and opacity. Beginning with Terragen 4.5 the Default shader has been improved for working with Physically Based Rendering (PBR) materials.
 +
 +
Many aspects of this node are made up of groups of related settings. For example the base colour aspect has settings for "Base colour", "Colour image" and "Colour function". All of these settings work together to control the particular aspect they relate to.
 +
 +
This has implications you might not expect. For example, lets say you want to map the image of a leaf onto the leaf polygons of a plant model.  For the true colours of the image to come through you need to set the "Base colour" to white. If it was set to some other colour, like red, that colour would influence the colours from the leaf image, tinting them red.  You can use this to your advantage. If you thought the image was too bright you could use a grey colour to make it darker.
 +
 +
Keep in mind that the different settings of each group aspect interact with each other. This makes the Default shader very versatile, but you might want to make step-by-step changes and render previews in order to see their effect as you learn how they work together.
 +
 +
Here are some tips to working with the different aspects of the Default shader:
 +
 +
<u>To specify a basic colour:</u>
 +
* Choose a colour with the "Base colour" setting.
 +
* Don't specify anything for the Image and Function settings.
 +
 +
<u>To use the colours directly from an image:</u>
 +
* Choose an image file with the "Colour image" setting.
 +
* Set the "Base colour" setting to white.
 +
* Don't specify anything for the "Colour function" setting.
 +
 +
<u>To use the colours directly from a shader or function:</u>
 +
* Assign a shader or function to the "Colour function" setting.
 +
* Set the "Base colour" setting to white.
 +
* Don't specify anything for the "Colour image" setting.
 +
 +
<u>To use an image or function to control where the colour appears:</u>
 +
* Specify the colour using the "Base colour" setting.
 +
* Specify a greyscale image in the "Colour image" setting or "Colour function". More of the specified colour will appear where the image or function is lighter. White means full colour and black means no colour.
 
== Colour Tab ==
 
== Colour Tab ==
 
[[File:DefShdr_01_GUI_ColourTab.png|none|470px|Colour Tab]]
 
[[File:DefShdr_01_GUI_ColourTab.png|none|470px|Colour Tab]]

Revision as of 21:01, 20 November 2020

Default Shader GUI


Overview[edit]

The Default shader node forms the basis for object surface mapping. It can provide base colours or load external images, as well as allowing control over translucency, luminosity, specular effects, displacement and opacity. Beginning with Terragen 4.5 the Default shader has been improved for working with Physically Based Rendering (PBR) materials.

Many aspects of this node are made up of groups of related settings. For example the base colour aspect has settings for "Base colour", "Colour image" and "Colour function". All of these settings work together to control the particular aspect they relate to.

This has implications you might not expect. For example, lets say you want to map the image of a leaf onto the leaf polygons of a plant model. For the true colours of the image to come through you need to set the "Base colour" to white. If it was set to some other colour, like red, that colour would influence the colours from the leaf image, tinting them red. You can use this to your advantage. If you thought the image was too bright you could use a grey colour to make it darker.

Keep in mind that the different settings of each group aspect interact with each other. This makes the Default shader very versatile, but you might want to make step-by-step changes and render previews in order to see their effect as you learn how they work together.

Here are some tips to working with the different aspects of the Default shader:

To specify a basic colour:

  • Choose a colour with the "Base colour" setting.
  • Don't specify anything for the Image and Function settings.

To use the colours directly from an image:

  • Choose an image file with the "Colour image" setting.
  • Set the "Base colour" setting to white.
  • Don't specify anything for the "Colour function" setting.

To use the colours directly from a shader or function:

  • Assign a shader or function to the "Colour function" setting.
  • Set the "Base colour" setting to white.
  • Don't specify anything for the "Colour image" setting.

To use an image or function to control where the colour appears:

  • Specify the colour using the "Base colour" setting.
  • Specify a greyscale image in the "Colour image" setting or "Colour function". More of the specified colour will appear where the image or function is lighter. White means full colour and black means no colour.

Colour Tab[edit]

Colour Tab

Settings:

    • Base colour:
    • Colour image:
    • Colour function:
    • Translucency:
    • Translucency image:
    • Translucency function:
    • Luminosity:
    • Luminosity image:
    • Luminosity function:

Roughness Tab[edit]

Roughness Tab

Settings:

    • Roughness:
    • Roughness image:
    • Invert image:
    • Gamma image:
    • Roughness function:

Specular Tab[edit]

Specular Tab

Settings:

    • Metalness:
    • Metalness image:
    • Gamma image:
    • Metalness function:
    • Fresnel reflectivity:
    • Reflectivity image:
    • Reflectivity function:
    • Fresnel reflection tint:
    • Index of refraction:

Displacement Tab[edit]

Displacement Tab

Settings:

    • Displacement direction:
      Displacment direction options
    • Displacement multiplier:
    • Displacement image:
    • Gamma image:
    • Displacement function:
    • Displacement offset:

Opacity Tab[edit]

Opacity Tab

Settings:

    • Opacity:
    • Opacity image:
    • Use alpha channel:
    • Invert opacity image:
    • Opacity function:
    • Alpha from colour:
    • Alpha key:
    • Key tolerance:

Images Tab[edit]

Images Tab

Settings:

    • Image projection:
      Image projection options
    • Projection camera:
    • Unpremultiply colour:
    • Unpremultiply metalness:
    • Unpremultiply translucency:
    • Unpremultiply luminosity:
    • Unpremultiply reflectivity:
    • Unpremultiply specular roughness:

A shader is a program or set of instructions used in 3D computer graphics to determine the final surface properties of an object or image. This can include arbitrarily complex descriptions of light absorption and diffusion, texture mapping, reflection and refraction, shadowing, surface displacement and post-processing effects. In Terragen 2 shaders are used to construct and modify almost every element of a scene.

Literally, to change the position of something. In graphics terminology to displace a surface is to modify its geometric (3D) structure using reference data of some kind. For example, a grayscale image might be taken as input, with black areas indicating no displacement of the surface, and white indicating maximum displacement. In Terragen 2 displacement is used to create all terrain by taking heightfield or procedural data as input and using it to displace the normally flat sphere of the planet.