This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
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
创建内容
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

处理大量对象

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 视频教程中找到。

最新更新: 2023-06-23
Build: ()