World Layer
A world layer is a world object that performs a background node loading, starting at the specified distance.
See also
- WorldLayer class to edit world layers via UnigineScript
- Unigine::WorldLayer class to edit world layers via C++ API
- The set of samples located in the data/samples/worlds/ directory:
- layer_00
Creating a World Layer
To create a world layer, choose the Add World Layer option in the list of nodes in Editor panel. In the creation dialog window, specify initial parameters:
A Creation Window
Point | A flag, indicating if the distance to the object is counted from the bounding box center (if disabled, the distance will be counted from its nearest edge). |
---|---|
Size | The size of the layer's bounding box along the X, Y and Z axes, in units. |
After the initial parameters are set, click Ok and choose a node to be loaded in the opened dialog window:
A Path to the Node
You can skip the node selection process by simple clicking Ok. The node for the layer can be chosen anytime in the Layer tab.
Editing a World Layer
In the Layer tab you can adjust the following parameters of the world layer:
A Layer tab
Bounding Box Parameters
A set of bounding box parameters:
Point | A flag, indicating if the distance to the object is counted from the center of the bounding box (if disabled, the distance will be counted from its nearest edge). |
---|---|
Size | The size of the layer's bounding box along the X, Y and Z axes, in units. |
Offset | The offset of the layer's bounding box along the X, Y and Z axes, in units. |
Loading Parameters
Loading and clear distances:
Load distance | The distance from the object's center or edge to the camera, starting at which the node is loaded, in units. |
---|---|
Clear distance | The distance from the object's center or edge to the camera, starting at which the node is not loaded, in units. |
Layer Parameters
Layer parameters:
Name | The world layer .node file. |
---|---|
Group | The priority group value. Greater priority means faster loading. |
Weight | The node weight value. Greater weight means faster loading inside the same priority group. |
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)