Heightfield Merge allows you to merge two heightfields together based on simple settings that control the amount of heightfield mixing and the type of mixing method used.
These images were used as heightfields in the examples below.
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Heightfield merge nodes in a project.
- Heightfield A: The heightfield file assigned to this setting will be merged with the heightfield connected to the Input node.
- Mix amount: This setting controls how much of “Heightfield A” is merged with the heightfield connected to the input node. A value of 0 means no merge will take place and the heightfield connected to the input node will be passed through without any modifications. A value of 1 means that “Heightfield A” will be merged completely with the other heightfield by whichever method is chosen below.
- Merge mode: This setting provides eight options for merging the two heightfields together.
- Mix: This mode progressively blends between the two heightfields. A value of 0.5 results in the two heightfields being equally blended together. A value of 0 returns the heightfield assigned to the input node, while a value of 1 results in the heightfield assigned to Heightfield A.
- Add: This mode adds the values from Heightfield A to the values from the Input node.
- Subtract: This mode subtracts the values from Heightfield A from the values of the Input node.
- Difference: This mode compares the two heightfields and subtracts the brighter of the two values at any given point. When the Heightfield A values are white the input node values are inverted. Merging with black produces no change.
- Highest (raise): This mode compares the two heightfields and returns the highest value at any given point.
- Lowest (cut away): This mode compares the two heightfields and returns the lowest value any given point.
- Multiply: Multiples the values of the Input node heightfield by Heightfield A’s values. Multiplying any value by black will result in black, while multiplying by white leaves the value unchanged.
- Screen: This mode multiplies the inverse of the two heightfields together resulting in a heightfield of brighter values. Where the values of Heightfield A are black the Input node heightfield values are unchanged and where the values of Heightfield A are white the Input node heightfield values become white.
A heightmap or heightfield is an array of height values, usually in a grid which describe the height at specific points in a defined area. Heightfields are used to represent real-world and virtual terrain in a specific, easily converted format. Most heightfields can be represented as simple image data in grayscale, with black being minimum height and white being maximum height.
A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.