视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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

处理大量对象

When the virtual scene contains a large number of objects, both identical and unique, managing each of them is a very complicated task. Moreover, when such objects are represented in the scene as separate meshes, the performance significantly drops.当虚拟场景包含大量相同且唯一的对象时,对其进行管理是一项非常复杂的任务。而且,当这些对象在场景中表示为单独的网格时,性能会大大降低。

UNIGINE allows managing a great number of objects as a single object by using clusters (Mesh Cluster) and clutters (Mesh Clutter). It simplifies a spatial tree of nodes (in the World Hierarchy, there will be one or several objects instead of thousands), thus increasing the performance. UNIGINE允许通过使用 clusters Mesh Cluster)和 clutters Mesh Clutter)将大量对象作为单个对象进行管理。它简化了节点的空间树(在世界层次结构中,将有一个或几个对象而不是数千个对象),从而提高了性能。

注意
Unlike a cluster, a clutter scatters objects randomly, and, therefore, meshes of the clutter cannot be managed manually. However, procedural scattering provided by the clutter is more memory-efficient. cluster 不同, cluster 随机散布对象,因此,无法手动管理杂波的网格。但是,杂波提供的过程性散射会提高内存效率。

Using Clusters使用集群#

Clusters allow you to manage a lot of objects as a single object, while keeping the ability to independently edit each mesh baked in the cluster. 使您可以将多个对象作为一个对象进行管理,同时保持独立编辑群集中烘焙的每个网格的能力。

Mesh Cluster contains only identical meshes. So, if you need to create a complex construction that contains several types of identical meshes (like the tube construction on the picture below), you will have to bake several mesh clusters: Mesh Cluster仅包含相同的网格。因此,如果您需要创建一个复杂的结构,其中包含几种类型的相同网格(如下图所示的管结构),则必须烘烤多个网格簇:

Mesh Clusters in World Hierarchy世界层次结构中的网格集群
Meshes Baked to Mesh Cluster (Click to watch the video tutorial)烘焙到Mesh Cluster的网格(单击以观看视频教程)

The detailed instructions on baking meshes to the cluster can be found in the corresponding article referenced above, as well as in the Content Optimization video tutorial.有关将网格烘焙到群集的详细说明,可以在上面引用的相应文章以及 Content Optimization 视频教程中找到。

Using Clutters使用杂波#

Clutters are almost the same objects as clusters. The main difference is that Mesh Clutter scatters objects randomly and doesn't allow editing each object baked into the clutter individually. However, such peculiarity makes the clutter objects more preferable from the perspective of the performance. 杂波几乎相同。主要区别在于, Mesh Clutter 会随机分散对象,不允许单独编辑放入杂波中的每个对象。但是,从性能的角度来看,这种特殊性使得杂物更可取。

Mesh Clutter (click to watch the video tutorial)Mesh Clutter (单击以观看视频教程)

The detailed instructions on baking meshes to the clutter can be found in the corresponding article referenced above, as well as in the Content Optimization video tutorial.有关将网格烘焙到混乱的详细说明,可以在上面引用的相应文章以及 Content Optimization 视频教程中找到。

最新更新: 2021-04-01