Normalise Vector

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
Normalise Vector
Normalise Vector


Overview

The Normalise vector node takes a vector as input and outputs the same vector with a magnitude (length) of 1. It does this by dividing the vector by its length so that its new length becomes 1. This is often referred to as a unit vector. Essentially, it rescales a vector to a length of 1, without changing its direction.


The green arrow represents the vector from the Main Input, while the red arrow represents the output of the Normalise vector node.
The green arrow represents the vector from the Main Input, while the red arrow represents the output of the Normalise vector node.


The following example is for illustrative purposes only. An EXR image supplies vector data to displace the planet surface. The vector data is first passed to a Normalise vector node prior to being passed to a Vector to colour node because some of the vector values will exceed the visual range, 0 to 1 or sRGB 0 - 255. Once normalised, the vector data is then converted to colour via the Vector to colour node.

Node Network view illustrating the vector data supplied by an EXR file both displacing and colouring the planet surface.
Render views illustrating the vector data supplied by an EXR file being assigned to a Surface layer’s Colour function and Luminosity function.