处理大量对象
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 and clutters. 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 和 clutters 将大量对象作为单个对象进行管理。它简化了节点的空间树(在世界层次结构中,将有一个或几个对象而不是数千个对象),从而提高了性能。
- Mesh Cluster and Mesh Clutter nodes allow managing a great number of identical meshes (or nodes in case of a World Clutter) in the world. Mesh Cluster和Mesh Clutter节点允许管理世界上大量的相同网格(或World Clutter情况下的节点)。
- World Clutter nodes allow managing a great number of node references in the world. World Clutter个节点允许管理世界上大量的节点引用。
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/nodes to the cluster can be found in the corresponding articles 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 the 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. 杂波与簇几乎相同。主要区别在于,杂波会随机分散对象,不允许单独编辑放入杂波中的每个对象。但是,从性能的角度来看,这种特殊性使得杂物更可取。
There are 2 types of clutters:杂波有2种类型:
- Mesh Clutter contains only identical meshes randomly scattered across the area. Mesh Clutter仅包含随机分布在该区域的相同网格。
- World Clutter contains randomly scattered node references. It means that you can bake different objects into the clutter and randomly position them. World Clutter包含随机分散的节点引用。这意味着您可以将不同的对象烘焙到混乱的物体中并随机放置它们。
The detailed instructions on baking meshes/nodes to the clutter can be found in the corresponding articles referenced above, as well as in the Content Optimization video tutorial.有关将网格/节点烘焙到混乱的详细说明,可以在上面引用的相应文章以及 Content Optimization 视频教程中找到。