Texture Displacement
Texture Displacement mapping utilizes a 2D texture map in order to generate 3D surface relief. As opposed to Bump and Normal mapping, Displacement mapping provides the illusion of depth, and it displaces point positions over the surface based on the displacement texture's light and dark values. The Texture Displacement node controls how the texture displaces the surface. Displacement mapping is not longer limited to UV projections. The displacement node has two Bake Modes:
- Normalized UV - Bakes into the 0..1 UV square. Best for tiling; Mesh UV projection only.
- UV Atlas - Bakes into an atlas of the mesh's UV triangles, supporting non-UV projections and vertex attributes (e.g. XYZ to UVW, Triplanar, Color vertex attribute, UV coordinate). This mode activates automatically when needed. UV Atlas mode requires non-overlapping UVs in the 0..1 range and may reduce displacement quality, because the whole mesh surface is baked into one atlas.
|
NOTE: Procedural textures must be baked prior using a Baking Image Texture and Motion Blur with Texture Displacement is not supported. |
The Texture Displacement node connects to a material node's Displacement input pin and the 2D texture map connects to the Texture input pin on the Texture Displacement node (figure 1).
|
|
Texture Displacement
|
Figure 1: A Material graph with Displacement applied to a Mesh
Displacement Parameters
Texture - This slot provides the displacement map path. Displacement maps are image textures generated in programs like ZBrush®, Substance Designer, or Photoshop®.
Mid Level - Defines the displacement shift in texture value range. Set this value to 0.5 for image textures that use 50% to represent no displacement. For images that use black to represent no displacement (such as 32-bit EXRs), set this value to 0. If using a digital sculpting program like ZBrush to generate displacement, the best results can be attainted by setting Mid Level in the sculpting program to 0.5 when it generates displacement, and then set the Displacement node's Mid Level value to 0.5.
Level Of Detail - Adjusts map detail quality. Higher values reduce artifacts seen in shadows cast on the displacement surface and brings out finer details, but it increases render time.
Height - Controls displacement strength.
Displacement Direction - Determines the displacement vector directions.
Filter Type - Determines the displacement map filter which is used to soften and filter the displacement results..
- Box - Uses an equal average, box-shaped distribution of neighboring pixels creating a uniform, flat-weighted blur across the sample radius.
- Gaussian - Weights neighboring pixels using a bell-curve, Gaussian distribution, giving more importance to the center pixels and tapers off smoothly.
Filter Radius - Adjusts the number of nearest pixels to use for filtering. Higher values result in smoother displacement maps. This parameter is valid when using the Box or Gaussian filter.
UV Set - Determines the UV set used for displacement map Atlas baking. Only affects UV Atlas Baking mode. Supported node types include Mesh UV, UV Vertex Attribute, and Color to UVW (in combination with Color Vertex Attribute)
Clamp Edge Displacement - Determines whether to clamp the displacement at the edges of the 0-1 UV space. Only applies to high quality displacement.
|
NOTE Calculating displacement geometry places additional GPU load. High or low displacement values causes issues and GPU errors. Displacement mapping emphasizes details in the scene's textural aspects rather than major features that the geometry should provide. Displacement and a Normal mapping cannot be used together on the same material - this results in rendering artifacts on the material. This also applies to Bump maps, but the digital artifacts are less pronounced. |

