This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
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
CIGI Client Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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 the node 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: 2019-08-16
Build: ()