Colour Adjust Shader: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
Redmaw (talk | contribs)
Uploaded example images and conformed page to new layout. WIP - still need descriptions.
Redmaw (talk | contribs)
m Added additional example images under Usage Tinting section for colorizing Black point.
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:ColoruAdj_00_GUI.png|none|470px|Colour Adjust Shader]]
[[File:ColoruAdj_00-2_GUI.png|none|470px|Colour Adjust Shader]]




== Overview ==
== Overview ==
The Colour Adjust Shader allows you to adjust the colour of the input shader using the Black and White points, and Gamma.
The Colour Adjust shader allows you to define the black point or white point of the shader or function nodes assigned to its Main input.
 
It is similar to a levels control in the sense that sliding the black point or the white point raises or lowers the darkest and brightest values.
 
 
[[File:ColourAdj_12_OverviewAdjBlkPnt.jpg|none|800px|Increasing the value of the Black point slider darkens the surface.]]
 
 
[[File:ColourAdj_13_OverviewAdjWhitePnt.jpg|none|800px|Decreasing the value of the White point slider lightens the surface.]]
 
[[File:ColourAdj_14_OverviewAdjWhitePnts.jpg|none|800px|Adjusting both Black and White points can darken and lighten parts the surface that are outside the values chosen by the sliders.]]
 
<!-- {|
|-
| [[File:ColourAdj_12_OverviewAdjBlkPnt.jpg|none|800px|Increasing the value of the Black point slider darkens the surface.]]
|-
| [[File:ColourAdj_13_OverviewAdjWhitePnt.jpg|none|800px|Decreasing the value of the White point slider lightens the surface.]]
|-
| [[File:ColourAdj_14_OverviewAdjWhitePnts.jpg|none|800px|Adjusting both Black and White points can darken and lighten parts the surface that are outside the values chosen by the sliders.]]
|} -->




Line 9: Line 29:
<ul>
<ul>
* ''' Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Colour adjust nodes in a project.
* ''' Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Colour adjust nodes in a project.
* ''' Clamp below black: '''
* ''' Clamp below black: '''When checked, the colour values that are below black (sRBG 0,0,0) are set to black.  This is useful when adjusted values become negative values, for example (-1.0,0.5,0.0). Prior to being output the negative values are reset to (0.0,0.5,0.0).
* ''' Clamp above white: '''
 
* ''' Clamp above white: '''When checked, the colour values that exceed beyond white (sRGB 255,255,255) are set to white.  This is useful when adjusted values become "super-bright", for example (5.0,0.75,1.0).  Prior to being output the super-bright values are reset or clamped to (1.0,0.75,1.0).
 
</ul>
</ul>


Line 16: Line 38:


== Input Levels Tab ==
== Input Levels Tab ==
[[File:ColoruAdj_01_GUI_InputLevelsTab.png|none|470px|Input Levels Tab]]
This tab contains settings for manipulating the colour values from the Main input.  Use the “Black point” slider to define the colour value you wish to be the lowest value and the “White point” slider to define the colour value you wish to be used as the highest values.  Values can extend beyond 0 and 1.
In the example images below this Power fractal pattern was used as the source texture.
[[File:ColourAdj_17_FractalNoisePattern.jpg|none|200px|Fractal noise pattern used as texture in example images below.]]
<ul>
<ul>
* ''' Black point (slider with Colour picker):'''
* ''' Black point: ''' As the Black point is increased a surface becomes darker.  For example, if the White point is set to 1 and the Black point is set to 0.5, the surface will be twice as dark.
 
<ul>
<ul>
[[File:ColourAdj_03_BlackPontValues.jpg|none|800px|White point = 1.  Black point values set to -1.0, -0.5, 0.0, 0.5 and 1.0]]
[[File:ColourAdj_15_BlackPntSlider.jpg|none|800px|White point = 1.  Black point values set to -1.0, -0.5, 0.0, 0.5 and 1.0]]
</ul>
</ul>
* ''' Black point (median slider):'''
* ''' White point (slider with Colour picker):'''
<ul>
[[File:ColourAdj_04_WhitePointValues.jpg|none|800px|Black point = 0.  White point values set to 2.0, 1.5, 1.0, 0.5 and 0.0]]
</ul>
* ''' White point (median slider):'''


* ''' White point: ''' As the white point is decreased a surface becomes brighter.  For example, if the Black point is set to 0 and the White point is set to 0.5, the surface will be twice as bright. 


<ul>
<ul>
[[File:ColourAdj_05_BlackAndWhitePointValues.jpg|none|800px|Black and White points at various values.]]
[[File:ColourAdj_16_WhitePntSlider.jpg|none|800px|Black point = 0.  White point values set to 2.0, 1.5, 1.0, 0.5 and 0.0]]
</ul>
</ul>
</ul>
</ul>


== Gamma Tab ==
[[File:ColoruAdj_02_GUI_GammaTab.png|none|470px|Gamma Tab]]




== Gamma Tab ==
<ul>
<ul>
* ''' Gamma (slider with Colour picker):'''
* ''' Gamma:'''
<ul>
<ul>
[[File:ColourAdj_06_Gamma.jpg|none|800px|Gamma point at 0.0, 0.25, 0.5, 0.75 and 1.0]]
[[File:ColourAdj_06_Gamma.jpg|none|800px|Gamma point at 0.0, 0.25, 0.5, 0.75 and 1.0]]
</ul>
</ul>
* ''' Gamma point (median slider):'''
 
</ul>
</ul>
== Usage ==
The Colour adjust shader is very versatile, and listed below are a number of practical uses for it.
'''Tinting: '''  By setting the black or white point to a complementary colour of the Main Input colour values a surface can be tinted.
{|
|-
| [[File:ColourAdj_18_Tinting_BlkPnt0_WhtPnt1.jpg|none|266px|Colour adjust shader at default settings.]] || [[File:ColourAdj_19_Tinting_BlkPnt0_WhtPnt0-255-255.jpg|none|266px|Colour adjust shader White point = sRGB 0,255,255.]] || [[File:ColourAdj_20_Tinting_BlkPnt0_WhtPnt255-0-0.jpg|none|266px|Colour adjust shader White point = sRGB 255,0,0.]]
|-
| || [[File:ColourAdj_21_Tinting_BlkPnt0-255-255_WhtPnt1.jpg|none|266px|Colour adjust shader Black point = 0,255,255]] || [[File:ColourAdj_22_Tinting_BlkPnt255-0-0_WhtPnt1.jpg|none|266px|Colour adjust shader Black pint = 255,0,0]]
|}
'''Masks: ''' By increasing or decreasing the black or white point values, shaders and function nodes used as masks can be expanded or contracted.
{|
|-
| [[File:ColourAdj_09_AsMask_BP0_WP0.jpg|none|266px|Colour adjust shader with default settings.]] || [[File:ColourAdj_10_AsMask_BPNeg10_WP0.jpg|none|266px|Colour adjust shader Black point = -10.]] || [[File:ColourAdj_11_AsMask_BP0_WP10.jpg|none|266px|Colour adjust shader White point = 10.]]
|}




<br />
<br />
[[Category:Colour Shader]]
[[Category:Colour Shader]]

Latest revision as of 00:05, 19 February 2021

Colour Adjust Shader
Colour Adjust Shader


Overview

The Colour Adjust shader allows you to define the black point or white point of the shader or function nodes assigned to its Main input.

It is similar to a levels control in the sense that sliding the black point or the white point raises or lowers the darkest and brightest values.


Increasing the value of the Black point slider darkens the surface.
Increasing the value of the Black point slider darkens the surface.


Decreasing the value of the White point slider lightens the surface.
Decreasing the value of the White point slider lightens the surface.


Adjusting both Black and White points can darken and lighten parts the surface that are outside the values chosen by the sliders.
Adjusting both Black and White points can darken and lighten parts the surface that are outside the values chosen by the sliders.


Settings:

    • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Colour adjust nodes in a project.
    • Clamp below black: When checked, the colour values that are below black (sRBG 0,0,0) are set to black. This is useful when adjusted values become negative values, for example (-1.0,0.5,0.0). Prior to being output the negative values are reset to (0.0,0.5,0.0).
    • Clamp above white: When checked, the colour values that exceed beyond white (sRGB 255,255,255) are set to white. This is useful when adjusted values become "super-bright", for example (5.0,0.75,1.0). Prior to being output the super-bright values are reset or clamped to (1.0,0.75,1.0).


Input Levels Tab

Input Levels Tab
Input Levels Tab

This tab contains settings for manipulating the colour values from the Main input. Use the “Black point” slider to define the colour value you wish to be the lowest value and the “White point” slider to define the colour value you wish to be used as the highest values. Values can extend beyond 0 and 1.


In the example images below this Power fractal pattern was used as the source texture.

Fractal noise pattern used as texture in example images below.
Fractal noise pattern used as texture in example images below.


    • Black point: As the Black point is increased a surface becomes darker. For example, if the White point is set to 1 and the Black point is set to 0.5, the surface will be twice as dark.
      White point = 1. Black point values set to -1.0, -0.5, 0.0, 0.5 and 1.0
      White point = 1. Black point values set to -1.0, -0.5, 0.0, 0.5 and 1.0
    • White point: As the white point is decreased a surface becomes brighter. For example, if the Black point is set to 0 and the White point is set to 0.5, the surface will be twice as bright.
      Black point = 0. White point values set to 2.0, 1.5, 1.0, 0.5 and 0.0
      Black point = 0. White point values set to 2.0, 1.5, 1.0, 0.5 and 0.0


Gamma Tab

Gamma Tab
Gamma Tab


    • Gamma:
      Gamma point at 0.0, 0.25, 0.5, 0.75 and 1.0
      Gamma point at 0.0, 0.25, 0.5, 0.75 and 1.0


Usage

The Colour adjust shader is very versatile, and listed below are a number of practical uses for it.


Tinting: By setting the black or white point to a complementary colour of the Main Input colour values a surface can be tinted.

Colour adjust shader at default settings.
Colour adjust shader at default settings.
Colour adjust shader White point = sRGB 0,255,255.
Colour adjust shader White point = sRGB 0,255,255.
Colour adjust shader White point = sRGB 255,0,0.
Colour adjust shader White point = sRGB 255,0,0.
Colour adjust shader Black point = 0,255,255
Colour adjust shader Black point = 0,255,255
Colour adjust shader Black pint = 255,0,0
Colour adjust shader Black pint = 255,0,0


Masks: By increasing or decreasing the black or white point values, shaders and function nodes used as masks can be expanded or contracted.

Colour adjust shader with default settings.
Colour adjust shader with default settings.
Colour adjust shader Black point = -10.
Colour adjust shader Black point = -10.
Colour adjust shader White point = 10.
Colour adjust shader White point = 10.