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

Field Animation

An animation field is an object, specifying geometry areas of grass and vegetation that should be animated. It affects animation parameters of leaf and stem materials applied to grass and vegetation.

Notice
These parameters will be affected by the animation field only when the Field mode is set for the Animation option of the corresponding material on the States tab.

An animation field can be used, for example, to create local rotor downwash effects on grass and trees.

Notice
The maximum number of FieldAnimations rendered per frame/bit mask is limited to:
  • 341 (DirectX)
  • 42 (OpenGL)

See also#

  • The FieldAnimation class to manage animation fields via API
  • A set of samples located in the data/samples/fields/ folder:
    • animation_00
    • animation_01

Animating Geometry with Animation Field#

To animate some specific part of grass or vegetation with an animation field, do the following:

  1. Add an animation field to the world: on the Menu bar, choose Create -> Field -> Animation and place the node in the world.

    Notice
    The animation field will affect only those part of grass or vegetation that is inside it.
  2. Set up the added animation field: check the Ellipse option (if required), set the size of the field. For example:

  3. In the Materials Hierarchy window, select the material applied to grass or vegetation and go to the States tab in the Parameters window. Change the value of the Animation option to Field. This will allow the field to affect the grass.

  4. Make sure that the Field mask of the animation field matches the Field mask of the grass object or stem and leaf materials (in case of animating vegetation).
  5. In the Field Animation section (Parameters window -> Node tab), specify the required animation parameters. For example, you can increase the Stem option to 3 so that the movement amplitude of the grass inside the animation field differs from the movement amplitude of all the other polygons.

    In the result, animation of the grass area inside the animation field will visually differ from the grass outside the field.

Editing Field Animation#

In the Field Animation section (Parameters window -> Node tab), the following parameters of the animation field can be adjusted:

Setting Form of Field#

Ellipse Indicates whether the animation field is ellipsoid-shaped. If unchecked, the animation field has a form of a cube.

Setting Bit Masks#

Field Mask A field mask. A bit mask that specifies an area of the animation field to be applied to grass or vegetation. The animation field will be applied only if both the field and grass (or vegetation) have matching masks.
Viewport Mask A viewport mask. A bit mask for rendering the animation field into the current viewport. For the animation field to be rendered into the viewport, its mask should match the camera viewport mask.

Setting Size and Attenuation#

Size Size of the animation field along the axes in units.
  • If the Ellipse option is unchecked, this is the size of the animation field box along the axes.
  • If the Ellipse option is checked, these are the ellipse radius values along the axes.
Attenuation An attenuation factor indicating how much animation attenuates starting from the center of the animation field to its edges.
  • By the minimum value of 0, no animation will be visible.
  • The higher the value, the more intensive animation will be at the edges of the animation field.

Setting Animation Parameters#

Notice
The field animation effect is not multiplied by render vegetation animation settings.
Stem Scale for movement amplitude of grass and vegetation stems inside the animation field.
Leaf Scale for rotation angle of vegetation leaves inside the animation field.
Scale Scale for speed of vegetation swaying.
Wind Wind direction inside the animation field.
Last update: 2024-04-19
Build: ()