This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Loading Nodes in Background

Background loading of nodes that are far away from the camera allows you to save RAM and boost the world loading.

UNIGINE provides a World Layer node that can include thousands of other nodes and perform loading of these nodes in the background starting at the certain distance. For example, if you have nodes that are many kilometres away from the camera, you can add them to the World Layer and specify the distance to the camera, starting at which these nodes are loaded. This way, you can increase performance of the application: the nodes will be loaded only when the camera triggers loading of the World Layer node.

A World Layer node is represented by the .node file that stores one or several nodes to be loaded in the background. Therefore, to use the World Layer for content optimization, you should perform the following:

  1. Save all the nodes that should be loaded at the certain distance to a single .node file in one of the ways described here.
  2. In the Menu Bar, choose Create -> Optimization -> World Layer and specify the .node file created in the previous step.
  3. Place the node in the world. In the World Hierarchy, the World Layer will be presented as a single node. You can expand it to access nodes stored inside.
    World Layer Collapsed
    World Layer Expanded
  4. In the World Layer tab of the Parameters window, specify the loading and clear distances.

    Notice
    The distance is calculated from the closest face of the bounding box. You can use the center point for calculations by enabling the Point option.
  5. If necessary, specify other settings for the World Layer.

To check the result, set the camera at the required distance from the layer, lock it and reload the world. When the world is loaded, start moving the camera towards the layer: at the specified distance, the layer will be loaded.

See Also

Last update: 2020-10-02
Build: ()