Simple Shape Shader - Displacement Tab: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Image:drex_module_168_1_image_0.png|465pxpx|Simple Shape Shader - Displacement Tab]]
[[Image:drex_module_168_1_image_0.png|center|Simple Shape Shader - Displacement Tab]]


'''Description:'''<br />
This is the Displacement tab of the [[Simple Shape Shader]].
This is the Displacement tab of the [[Simple Shape Shader]].


TG3 introduces some new displacement options, '''Displace relative to surface''' and  '''Displace relative to shader position'''. They allow you to change the way the shader applies displacement. The two images below show the two different methods. The one on the left uses '''Displace relative to surface''' and the other one uses '''Displace relative to shader position'''. Those were the only parameters which changed between the two images.
TG3 introduces some new displacement options, '''Displace relative to surface''' and  '''Displace relative to shader position'''. They allow you to change the way the shader applies displacement. The two images below show the two different methods. The one on the left uses '''Displace relative to surface''' and the other one uses '''Displace relative to shader position'''. Those were the only parameters which changed between the two images.


'''Displace relative to surface''' is how displacement was always applied in TG2. What happens is that the shader looks at the position of the surface underneath and then applies displacement to that. That means if the surface is lumpy that lumpiness flows through into the shape created by the shader. In this case the shader was making a pyramid and the pyramid shape has been distorted by the underlying terrain.
<center>
<table>
<tr>
<td>
[[Image:sss_surface_relative_displacement.jpg]]
</td><td>
[[Image:sss_shader_relative_displacement.jpg]]
</td>
</tr><tr>
<td>
<center><font size="-1">Displace relative to surface</font></center>
</td><td>
<center><font size="-1">Displace relative to shader position</font></center>
</td>
</tr>
</table>
</center>
 
'''Displace relative to surface''' is how displacement was always applied in TG2. What happens is that the shader looks at the position of the surface underneath and then applies displacement to that. That means if the surface is lumpy that lumpiness flows through into the shape created by the shader. In this case the shader was making a pyramid and the pyramid shape has been distorted by the underlying terrain. It also integrates smoothly with the terrain around the edges.


'''Displace relative to shader position''' ignores the underlying surface and always displaces from the shader position. Currently this means that displacement is applied relative to the Y coordinate of the shader position. As you can see from the image on the right this means that the displaced shape is generated exactly by the shader and not distorted. In this case the shader Y position is 10. You can see there is a "wall" around the bottom of the shape. This accounts for the difference between the edge of the shader (at 10m) and the underlying terrain, which is lower than along 10m along the two edges we can see.
'''Displace relative to shader position''' ignores the underlying surface and always displaces from the shader position. Currently this means that displacement is applied relative to the Y coordinate of the shader position. As you can see from the image on the right this means that the displaced shape is generated exactly by the shader and not distorted. In this case the shader Y position is 10. You can see there is a "wall" around the bottom of the shape. This accounts for the difference between the edge of the shader (at 10m) and the underlying terrain, which is lower than along 10m along the two edges we can see.
Line 20: Line 39:
* '''Displacement edge width:''' This param lets you set the width of the edge area of the shape. To show the edge profile the '''Displacement edge profile''' popup needs to set to something other than "None".
* '''Displacement edge width:''' This param lets you set the width of the edge area of the shape. To show the edge profile the '''Displacement edge profile''' popup needs to set to something other than "None".
* '''Position key:'''
* '''Position key:'''
<br />
 
 
Back to: [[Simple Shape Shader]]
Back to: [[Simple Shape Shader]]
__NOTOC__

Revision as of 11:14, 31 July 2013

Simple Shape Shader - Displacement Tab
Simple Shape Shader - Displacement Tab

Description:
This is the Displacement tab of the Simple Shape Shader.

TG3 introduces some new displacement options, Displace relative to surface and Displace relative to shader position. They allow you to change the way the shader applies displacement. The two images below show the two different methods. The one on the left uses Displace relative to surface and the other one uses Displace relative to shader position. Those were the only parameters which changed between the two images.

Displace relative to surface
Displace relative to shader position

Displace relative to surface is how displacement was always applied in TG2. What happens is that the shader looks at the position of the surface underneath and then applies displacement to that. That means if the surface is lumpy that lumpiness flows through into the shape created by the shader. In this case the shader was making a pyramid and the pyramid shape has been distorted by the underlying terrain. It also integrates smoothly with the terrain around the edges.

Displace relative to shader position ignores the underlying surface and always displaces from the shader position. Currently this means that displacement is applied relative to the Y coordinate of the shader position. As you can see from the image on the right this means that the displaced shape is generated exactly by the shader and not distorted. In this case the shader Y position is 10. You can see there is a "wall" around the bottom of the shape. This accounts for the difference between the edge of the shader (at 10m) and the underlying terrain, which is lower than along 10m along the two edges we can see.


Settings:

  • Apply displacement: If this is checked the shader will generate displacement information.
  • Displace relative to surface (TG3): If this option is chosen the displacement gets applied relative to the underlying surface. This is how the shader works in TG2.
  • Displace relative to shader position If this option is chosen the displacement gets applied to the shader position. Currently this means the shader Y position.
  • Displacement direction: Choose the direction for displacement.
  • Displacement amplitude: Set the amount of displacement.
  • Displacement offset: Set the starting offset of the displacement.
  • Displacement edge profile: This controls the profile which is applied to the edge of the shape. This creates a 3D edge profile, as you might expect from displacement. See above for examples of the different edge profiles. Note that the "Stroke" edge profile is not available for displacement.
  • Displacement edge width: This param lets you set the width of the edge area of the shape. To show the edge profile the Displacement edge profile popup needs to set to something other than "None".
  • Position key:


Back to: Simple Shape Shader