Heightfield Smooth: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
Updated descriptions and added example images to all settings.
Line 1: Line 1:
[[Image:drex_module_189_image_0.png|485pxpx|Heightfield Smooth]]
[[File:HF_Smooth_00_GUI.png|none|470px|Heightfield Smooth]]


'''Node description and purpose:'''<br />
== Overview ==
The Heightfield Smooth node can smooth a heightfield. Here is an movie showing the effect of the node as the '''Smooth Radius''' setting changes from 0 to 1000:
This node smooths a heightfield by averaging a certain number of points next to a given sample point. A value of 0 in the “Smooth radius” setting results in no smoothing, while a value of 10 would average the given sample point with 10 of its closest neighbors.   


<mediaplayer>file:hfsmooth_radius.mp4</mediaplayer>
When setting the “Smooth radius” value be aware of the heightfield’s resolution, that is the number of points in a TER file or the number of pixels in an image file, because the more points contained within a heightfield, the less the distance that separates them.  Therefore a value of 10 smooths a larger area when the heightfield’s resolution is 10 x 10 than when the resolution is 1000 x 1000.
{|
|-
| [[File:HFSmooth_11_NumPnts10x10.jpg|none|266px|Heightfield resolution 10 x 10.]] || [[File:HFSmooth_12_NumPnts100x100.jpg|none|266px|Heightfield resolution 100 x 100.]] || [[File:HFSmooth_13_NumPnts1000x1000.jpg|none|266px|Heightfield resolution 1000 x 1000.]]
|}




'''Node Type: '''Heightfield Operator<br />


'''Settings:'''


'''Settings:'''<br />
<ul>
* '''Smooth Radius: ''' This is the size of the area smoothed by the node. As the value increases the smoother the heightfield will become. 0 performs no smoothing. A setting of 10 will smooth a heighfield point using the 10 nearest points all the way around that point.
* '''Name: ''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Heightfield smooth nodes in a project.


* '''Smooth radius: ''' Sets the number of nearest points to include in evaluating the smoothness of the sample point.  The higher the value the smoother the terrain.
<ul>
{|
|-
| [[File:HFSmooth_08_NumPnts10_SmoothRadius0.jpg|none|266px|Heightfield resolution 10 x 10, Smooth radius = 0]] || [[File:HFSmooth_09_NumPnts10_SmoothRadius2.jpg|none|266px|Heightfield resolution 10 x 10, Smooth radius = 2]] || [[File:HFSmooth_10_NumPnts10_SmoothRadius10.jpg|none|266px|Heightfield resolution 10 x 10, Smooth radius = 10]]
|-
| [[File:HFSmooth_05_NumPnts100_SmoothRadius0.jpg|none|266px|Heightfield resolution 100 x 100, Smooth radius = 0]] || [[File:HFSmooth_06_NumPnts100_SmoothRadius2.jpg|none|266px|Heightfield resolution 100 x 100, Smooth radius = 2]] || [[File:HFSmooth_07_NumPnts100_SmoothRadius10.jpg|none|266px|Heightfield resolution 100 x 100, Smooth radius = 10]]
|-
| [[File:HFSmooth_02_NumPnts1000_SmoothRadius0.jpg|none|266px|Heightfield resolution 1000 x 1000, Smooth radius = 0]] || [[File:HFSmooth_03_NumPnts1000_SmoothRadius2.jpg|none|266px|Heightfield resolution 1000 x 1000, Smooth radius = 2]] || [[File:HFSmooth_04_NumPnts1000_SmoothRadius10.jpg|none|266px|Heightfield resolution 1000 x 1000, Smooth radius = 10]]
|}
</ul>
</ul>
<br />
[[Category: Heightfield Operators]]
[[Category: Heightfield Operators]]

Revision as of 23:10, 15 January 2021

Heightfield Smooth
Heightfield Smooth

Overview

This node smooths a heightfield by averaging a certain number of points next to a given sample point. A value of 0 in the “Smooth radius” setting results in no smoothing, while a value of 10 would average the given sample point with 10 of its closest neighbors.

When setting the “Smooth radius” value be aware of the heightfield’s resolution, that is the number of points in a TER file or the number of pixels in an image file, because the more points contained within a heightfield, the less the distance that separates them. Therefore a value of 10 smooths a larger area when the heightfield’s resolution is 10 x 10 than when the resolution is 1000 x 1000.

Heightfield resolution 10 x 10.
Heightfield resolution 10 x 10.
Heightfield resolution 100 x 100.
Heightfield resolution 100 x 100.
Heightfield resolution 1000 x 1000.
Heightfield resolution 1000 x 1000.


Settings:

    • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Heightfield smooth nodes in a project.
    • Smooth radius: Sets the number of nearest points to include in evaluating the smoothness of the sample point. The higher the value the smoother the terrain.
      Heightfield resolution 10 x 10, Smooth radius = 0
      Heightfield resolution 10 x 10, Smooth radius = 0
      Heightfield resolution 10 x 10, Smooth radius = 2
      Heightfield resolution 10 x 10, Smooth radius = 2
      Heightfield resolution 10 x 10, Smooth radius = 10
      Heightfield resolution 10 x 10, Smooth radius = 10
      Heightfield resolution 100 x 100, Smooth radius = 0
      Heightfield resolution 100 x 100, Smooth radius = 0
      Heightfield resolution 100 x 100, Smooth radius = 2
      Heightfield resolution 100 x 100, Smooth radius = 2
      Heightfield resolution 100 x 100, Smooth radius = 10
      Heightfield resolution 100 x 100, Smooth radius = 10
      Heightfield resolution 1000 x 1000, Smooth radius = 0
      Heightfield resolution 1000 x 1000, Smooth radius = 0
      Heightfield resolution 1000 x 1000, Smooth radius = 2
      Heightfield resolution 1000 x 1000, Smooth radius = 2
      Heightfield resolution 1000 x 1000, Smooth radius = 10
      Heightfield resolution 1000 x 1000, Smooth radius = 10