Heightfield Smooth: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
m Fixed typo in HFSmooth_43_HFFractalDetail and tweaked layout of Overview paragraph.
 
(8 intermediate revisions by 2 users not shown)
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 the sample points within the “Smooth radius” value. This value is defined in metres and in world space. It is not dependent on the heightfield’s resolution, ensuring that the smoothing effect will be “similar” whether a heightfield's resolution is 1024 x 1024 or 8k. 


<mediaplayer>file:hfsmooth_radius.mp4</mediaplayer>
Fractal detail can be added to the smoothed heightfield via the Heightfield’s Fractal Detail tab.
[[File:HFSmooth_43_HFFractalDetail.jpg|none|800px|Fractal detail added to smoothed heightfield.]]




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


<ul>
* '''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 maximum distance in metres from the sample point being smoothed. The sample points within this radius are averaged together forming the final smoothed value.  The smoothing process is similar to a gaussian blur falloff; that is, sample points closer to the point being smoothed have greater influence on the smoothing result than points further away.
<ul>
{|
|-
| [[File:HFSmooth_25_SizeInMetres500_SmoothRadius0.jpg|none|266px|Heightfield size 500 metres.  Smooth radius = 0. ]] || [[File:HFSmooth_26_SizeInMetres500_SmoothRadius10.jpg|none|266px|Heightfield size 500 metres.  Smooth radius = 10.]] || [[File:HFSmooth_27_SizeInMetres500_SmoothRadius100.jpg|none|266px|Heightfield size 500 metres.  Smooth radius = 100.]]
|-
| [[File:HFSmooth_28_SizeInMetres4k_SmoothRadius0.jpg|none|266px|Heightfield size 4000 metres.  Smooth radius = 0.]] || [[File:HFSmooth_29_SizeInMetres4k_SmoothRadius10.jpg|none|266px|Heightfield size 4000 metres.  Smooth radius = 10.]] || [[File:HFSmooth_30_SizeInMetres4k_SmoothRadius100.jpg|none|266px|Heightfield size 4000 metres.  Smooth radius = 100.]]
|} <br />
The smoothing effect is independent from the heightfield’s resolution, whether expressed as the  “Number of points” setting or the number of pixels in an image file.  What matters is the distance in meters which is based on world space.  Notice in the example images below that although the heightfield resolutions are very different the final smoothing across the terrain looks very similar.
{|
|-
| [[File:HFSmooth_37_NumPnts64_SmoothRadius0.jpg|none|266px|Heightfield resolution 64 x 64. Smooth radius = 0.]] || [[File:HFSmooth_38_NumPnts64_SmoothRadius10.jpg|none|266px|Heightfield resolution 64 x 64. Smooth radius = 10.]] || [[File:HFSmooth_39_NumPnts64_SmoothRadius100.jpg|none|266px|Heightfield resolution 64 x 64. Smooth radius = 100.]]
|-
| [[File:HFSmooth_40_NumPnts1024_SmoothRadius0.jpg|none|266px|Heightfield resolution 1024 x 1024. Smooth radius = 0.]] || [[File:HFSmooth_41_NumPnts1024_SmoothRadius10.jpg|none|266px|Heightfield resolution 1024 x 1024. Smooth radius = 100.]] || [[File:HFSmooth_42_NumPnts1024_SmoothRadius100.jpg|none|266px|Heightfield resolution 1024 x 1024. Smooth radius = 1000.]]
|}
</ul>
</ul> <br />


'''Settings:'''<br />
* '''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 the point.


[[Category: Heightfield Operators]]
[[Category: Heightfield Operators]]

Latest revision as of 18:49, 29 January 2021

Heightfield Smooth
Heightfield Smooth

Overview

This node smooths a heightfield by averaging the sample points within the “Smooth radius” value. This value is defined in metres and in world space. It is not dependent on the heightfield’s resolution, ensuring that the smoothing effect will be “similar” whether a heightfield's resolution is 1024 x 1024 or 8k.

Fractal detail can be added to the smoothed heightfield via the Heightfield’s Fractal Detail tab.

Fractal detail added to smoothed heightfield.
Fractal detail added to smoothed heightfield.


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 maximum distance in metres from the sample point being smoothed. The sample points within this radius are averaged together forming the final smoothed value. The smoothing process is similar to a gaussian blur falloff; that is, sample points closer to the point being smoothed have greater influence on the smoothing result than points further away.
      Heightfield size 500 metres. Smooth radius = 0.
      Heightfield size 500 metres. Smooth radius = 0.
      Heightfield size 500 metres. Smooth radius = 10.
      Heightfield size 500 metres. Smooth radius = 10.
      Heightfield size 500 metres. Smooth radius = 100.
      Heightfield size 500 metres. Smooth radius = 100.
      Heightfield size 4000 metres. Smooth radius = 0.
      Heightfield size 4000 metres. Smooth radius = 0.
      Heightfield size 4000 metres. Smooth radius = 10.
      Heightfield size 4000 metres. Smooth radius = 10.
      Heightfield size 4000 metres. Smooth radius = 100.
      Heightfield size 4000 metres. Smooth radius = 100.

      The smoothing effect is independent from the heightfield’s resolution, whether expressed as the “Number of points” setting or the number of pixels in an image file. What matters is the distance in meters which is based on world space. Notice in the example images below that although the heightfield resolutions are very different the final smoothing across the terrain looks very similar.


      Heightfield resolution 64 x 64. Smooth radius = 0.
      Heightfield resolution 64 x 64. Smooth radius = 0.
      Heightfield resolution 64 x 64. Smooth radius = 10.
      Heightfield resolution 64 x 64. Smooth radius = 10.
      Heightfield resolution 64 x 64. Smooth radius = 100.
      Heightfield resolution 64 x 64. Smooth radius = 100.
      Heightfield resolution 1024 x 1024. Smooth radius = 0.
      Heightfield resolution 1024 x 1024. Smooth radius = 0.
      Heightfield resolution 1024 x 1024. Smooth radius = 100.
      Heightfield resolution 1024 x 1024. Smooth radius = 100.
      Heightfield resolution 1024 x 1024. Smooth radius = 1000.
      Heightfield resolution 1024 x 1024. Smooth radius = 1000.