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

广告牌(Billboards)

The Billboards object consists of a number of billboard elements. A billboard is a rectangular flat object that always faces the camera. The Billboards is used instead of fully functional objects that are barely seen from far off and slightly change their position when the camera moves around them (e.g. clouds, stars, far away forests). Using Billboards helps to simplify and speed up rendering.Billboards对象由许多广告牌元素组成。一个广告牌是一个矩形的平面对象,总是面向摄像机。使用Billboards来代替从远处几乎看不到的功能完整的物体,当相机移动它们时,它们的位置会略有变化(例如云、星星、遥远的森林)。使用Billboards有助于简化和加快渲染。

For example, when you are adding a tree that is hardly seen from a distance, instead of creating a complex tree mesh, just put an appropriate texture onto the alpha-tested Billboards and it will make no visual difference at such a range.例如,当你添加一个从远处看不太清楚的树,而不是创建一个复杂的树网格,只是将一个适当的纹理放到alpha测试的Billboards上,它在这样的范围内不会产生视觉上的差异。

Billboards

Billboards

In the Create menu you will see three options each creating a Billboards object used for a specific purpose and having a specific material assigned:Create菜单中,您将看到三个选项,每个选项创建一个用于特定目的的Billboards对象,并分配特定的材质:

  • Base - used for groups of billboards (billboards_base material)Base -用于成群的广告牌(billboards_base材料)
  • Impostor - used as an optimization for impostors to be rendered, for example, instead of a Cluster object at large distances (Billboards are simpler and less performance-consuming). In this case the billboards_impostor_base material is assigned, it is a base material for impostors, that supports sampling different regions of textures based on viewing angle.Impostor—用作视点冒名顶替者的优化,例如,在大距离时代替Cluster对象(Billboards更简单,也更少消耗性能)。在这种情况下,billboards_impostor_base材质被分配,它是视点替用特效的基础材质,支持基于视角采样不同区域的纹理。
  • Cloud - intended to simulate simple shaded clouds (billboards_cloud_base material)Cloud -用于模拟简单的阴影云(billboards_cloud_base材质)

These materials have different parameters and are rendered differently based on their applications, you can find more details in the articles listed below, and check out the Billboards sample from the Art Samples suite included in the SDK.这些材料具有不同的参数,并根据它们的应用程序以不同的方式呈现,您可以在下面列出的文章中找到更多细节,并查看SDK中包含的Art Samples套件中的Billboards示例。

See Also另请参阅#

Creating Billboards创建的广告牌#

To create Billboards, perform the following steps:创建“Billboards”的步骤如下:

  1. On the Menu bar, click Create -> Billboards -> Base.在“菜单”栏单击“Create -> Billboards -> Base”。

  2. Place the Billboards object somewhere in the world.Billboards对象放置在世界的某个地方。
  3. Specify the Billboards parameters.指定 Billboards参数

Billboards Parameters广告牌参数#

Depth Sort Indicates that billboards should be sorted in back-to-front order according to their position. This option should be enabled, if alpha blending is used for the billboard material (except for the additive blending).指示广告牌应按位置从后到前的顺序排列。如果Alpha Blend 用于广告牌材质(添加混合除外),则应该启用此选项。

Billboards Options广告牌选项#

In the Billboards section of the Node tab, you can create new billboards and tweak their settings.Node选项卡的Billboards部分,您可以创建新的广告牌并调整它们的设置。

Add from Children Adds all billboards from identical children objects to the list in the parent billboard and removes the added children from the World Nodes hierarchy. 将所有从相同的孩子广告牌对象添加到列表在父广告牌和删除添加的孩子从World Nodes层次结构。
Add

Adds a new billboard. After a new billboard is created, it can be selected in the list of billboards in the Node tab and repositioned using a standard manipulator.增加一个新的广告牌。创建一个新的广告牌后,可以在Node选项卡的广告牌列表中选择它,并使用标准操纵器重新定位它。

Repositioning a separate billboard

Remove Removes a billboard selected in the list.删除列表中选中一个广告牌。
Clear Removes all billboards from the list.从列表中删除所有的广告牌。

Position Moves the billboard along X, Y and Z axes, respectively.X移动广告牌,分别YZ轴。
Normal Sets the X, Y and Z coordinates of the billboard's normal vector. Is used to orient the billboard. Works only with the billboards_impostor_base material.设置广告牌的法向量的XYZ坐标。是用来定位广告牌的。仅适用于billboards_impostor_base材质。
ScaleX
ScaleY

Scale values scale the texture on the selected billboard along X and Y axes, for example:量表的价值观量表选择广告牌上的纹理在XY轴,例如:

  • If ScaleX is set to 2, there will be two texture tiles widthways.如果ScaleX被设置为2,将会有两个宽度纹理贴图。
TranslateX
TranslateY

Translate values offset the texture on the selected billboard along X and Y. With these parameters, an arbitrary point of the texture can be set as the top left corner of the billboard, for example:翻译值抵消纹理沿着XY选中的广告牌。与这些参数,可以设置任意点的纹理的左上角广告牌,例如:

  • If TranslateX is set to 0.5, the texture is repositioned to the left (so that the edge of the texture is rendered in the center of the billboard).如果 TranslateX被设置为0.5,纹理被重新定位到左边(这样纹理的边缘被渲染到广告牌的中心)。
Width Width of the rectangle for the selected billboard.矩形的宽度为选定的广告牌。
Height Height of the rectangle for the selected billboard.选定广告牌矩形的高度。
Angle

Angle to orientate the selected billboard.角度定位选择的广告牌。

Angle

Axis

Sets the basis for the Billboards object's Z axis:设置Billboards对象的Z轴基础:

  • World Z - the Billboards object uses a world space orientation.World Z - Billboards对象使用一个世界空间取向。
  • Local Z - the Billboards object uses a local space orientation.Local ZBillboards对象使用本地空间定向。
Drop All to the Ground Positions all billboards to the surface below them.职位所有广告牌下面的表面。

Generator发电机#

Generator allows you to automatically create a specified number of billboards and randomly scatter them within an arbitrary mesh volume. After that, they will appear in the list in the Billboards section of the Node tab and can be repositioned, if necessary. If a texture atlas is used, each of the created billboards will be randomly assigned one of texture slots.发电机允许您自动创建一个指定数量的广告牌和随机分散在一个任意网格体积。之后,他们将出现在列表中Billboards部分Node选项卡,可以重新定位,如果必要的。如果使用一个纹理地图集,创建的每个广告牌将随机分配一个纹理槽。

Count The number of billboards to create and scatter.要创建和散布的广告牌数量。
Width If a texture atlas is used, Width specifies the number of slots horizontally. If a simple texture is used, this value should be 1.如果使用一个纹理地图集,Width指定水平槽的数量。如果使用一个简单的纹理,这个值应该是1
Height If a texture atlas is used, Height specifies the number of slots vertically. If a simple texture is used, this value should be 1.如果使用纹理图集,Height指定垂直位置的槽数。如果使用一个简单的纹理,这个值应该是1
Radius
Spread

The size of the square billboards to be created.要创建的大小广场广告牌。

Spread value defines the range for possible variation of the Radius:Spread值定义了半径可能变化的范围:

  • The higher the value, the more varying size the created billboards will have. (See how it is calculated in detail here.)值越高,创建的广告牌的大小变化越大。 (查看详细计算方法这里。)
  • If set to 0, all billboards will be of equal size.如果设置为0,所有广告牌的大小都相同。
Aspect
Spread

The ratio of width to height. This option is used to create rectangular billboards.宽与高的比率。此选项用于创建矩形广告牌。

  • If Aspect is set to 0.5, the width of the billboards will be twice their height.如果设置为1 Aspect_phl,广告牌的宽度将高度的2倍。
  • If Aspect is set to 2, the height of the billboards will be twice their width.如果Aspect被设置为2,广告牌的高度将是其宽度的两倍。

Spread value defines the range for possible variation of the Aspect:Spread值定义了可能的变化范围Aspect:

  • The higher the value, the more varying aspects the created billboards will have. (See how it is calculated in detail here.)值越高,创建的广告牌将具有更多不同的方面。(查看详细计算方法这里。)
  • If set to 0, all billboards will be of equal (square) size.如果设置为0,所有广告牌的大小将是相等的(正方形)。
Angle
Spread

Angle of orientation.角方向。

Spread value defines the range for possible variation of the Angle:Spread值定义了Angle可能变化的范围:

  • The higher the value, the more differently the created billboards will be oriented. (See how it is calculated in detail here.)值越高,创建的广告牌的方向就越不同。(查看详细计算方法这里。)
  • If set to 0, all billboards will stand straight.如果设置为0,所有的广告牌都会立直。
Bound A mesh that determines the volume within which billboards will be generated. The mesh itself is not rendered.一个网格,用来决定广告牌将生成的内卷。网格本身并不呈现。
Generate Create new billboards and scatter them within the mesh volume. If a texture atlas is used, each of the created billboards will be randomly assigned one of the texture slots.创建新的广告牌,并将它们分散在网格体中。如果使用纹理图集,每个创建的广告牌将被随机分配一个纹理槽。
最新更新: 2022-10-10
Build: ()