This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gamedev:textureproperties:absorption_range [2014/03/30 16:16] – created dragonlord | gamedev:textureproperties:absorption_range [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
- | <WRAP boxheader> | + | ====== |
- | ====== | + | |
- | </ | + | Defines the sub surface absorption range as typically used for human skin. |
- | <WRAP boxcontent> | + | |
- | |Texture Property Name|absorption.range| | + | |
- | |Description|Defines the sub surface absorption range.| | + | |
|Excepted Data Source|1 component value| | |Excepted Data Source|1 component value| | ||
|Data Range|0 or grater| | |Data Range|0 or grater| | ||
Line 14: | Line 13: | ||
|Affected Modules|Graphic| | |Affected Modules|Graphic| | ||
|Linked Properties|[[absorption|absorption]]| | |Linked Properties|[[absorption|absorption]]| | ||
- | </ | ||
====== Description ====== | ====== Description ====== | ||
+ | |||
The **absorption.range** texture property defines the range of scattering in sub surface absorption of a material. Sub surface absorption affects light entering the material after surface based texture properties have taken effect. Sub surface absorption has two main effects. The first is that light is scattered under the surface and exits at a nearby point. The second effect is translucency. In both cases the **absorption.range** texture property defines the range of absorption. Beyond this limit the light is fully absorbed by the material. In between the light is partially absorbed using an exponential decay function. In contrast to the [[absorption|absorption]] texture property the **absorption.range** is a single component value and defines the largest radius. The actual absorption used is thus [[absorption|absorption]] times **absorption.range** component wise. See [[absorption|absorption]] texture property more information about absorption. | The **absorption.range** texture property defines the range of scattering in sub surface absorption of a material. Sub surface absorption affects light entering the material after surface based texture properties have taken effect. Sub surface absorption has two main effects. The first is that light is scattered under the surface and exits at a nearby point. The second effect is translucency. In both cases the **absorption.range** texture property defines the range of absorption. Beyond this limit the light is fully absorbed by the material. In between the light is partially absorbed using an exponential decay function. In contrast to the [[absorption|absorption]] texture property the **absorption.range** is a single component value and defines the largest radius. The actual absorption used is thus [[absorption|absorption]] times **absorption.range** component wise. See [[absorption|absorption]] texture property more information about absorption. | ||
Line 23: | Line 22: | ||
The default value for this texture property is 0 which disables sub surface light absorption and scattering. | The default value for this texture property is 0 which disables sub surface light absorption and scattering. | ||
- | A value of 0.02 is a typical choice for human skin. | + | A value of 0.02 is a typical choice for human skin. Most materials have absorption ranges below 0.1 . |
+ | |||
+ | Note on the values in the examples below. The stanford armadillo model is small. If you want a full size 2 meter high armadillo to show these absorption properties you have to multiply the range by 10 to obtain similar values. | ||
====== Examples ====== | ====== Examples ====== | ||
+ | |||
<WRAP column 45%> | <WRAP column 45%> | ||
<WRAP center box 350px> | <WRAP center box 350px> | ||
- | {{ : | + | {{ : |
- | <WRAP centeralign> | + | <WRAP centeralign> |
</ | </ | ||
</ | </ | ||
Line 35: | Line 37: | ||
<WRAP column 45%> | <WRAP column 45%> | ||
<WRAP center box 350px> | <WRAP center box 350px> | ||
- | {{ : | + | {{ : |
- | <WRAP centeralign> | + | <WRAP centeralign> |
</ | </ | ||
</ | </ | ||
Line 44: | Line 46: | ||
<WRAP column 45%> | <WRAP column 45%> | ||
<WRAP center box 350px> | <WRAP center box 350px> | ||
- | {{ : | + | {{ : |
- | <WRAP centeralign> | + | <WRAP centeralign> |
</ | </ | ||
</ | </ | ||
Line 51: | Line 53: | ||
<WRAP column 45%> | <WRAP column 45%> | ||
<WRAP center box 350px> | <WRAP center box 350px> | ||
- | {{ : | + | {{ : |
- | <WRAP centeralign> | + | <WRAP centeralign> |
</ | </ | ||
</ | </ | ||
<WRAP clear></ | <WRAP clear></ |