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
VR Development
双精度坐标
应用程序接口
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版本。

使用示例

The article contains the step-by-step implementation of fading-in/fading-out of an object in the scene by means of the Tracker tool:文章包含通过Tracker工具逐步实现场景中物体的淡入/淡出:

  1. Create two objects (e.g box primitives: box1 and box2) with the same transformation and having two materials with different Albedo textures assigned.创建两个对象(例如盒基元:box1box2)具有相同的变换,并具有分配了不同 Albedo 纹理的两种材质。

  2. Make the box1 object transparent by setting Common -> Transparency -> Preset -> Alpha Blend for its material.制作 box1 对象透明通过为其材质设置 Common -> Transparency -> Preset -> Alpha Blend

  3. Open the Tracker tool by choosing Tools -> Tracker in the Menu Bar.通过在菜单栏中选择 Tools -> Tracker 打开 Tracker 工具。
  4. Click to add a new track and choose node -> object -> material -> parameterSlider in the Add Parameter window that opens.单击 添加新曲目并在打开的 Add Parameter 窗口中选择 node -> object -> material -> parameterSlider

  5. 选择透明的box1中的对象Select Node打开的窗口。

  6. 选择box:transparent中的参数Parameter的领域Track Info部分。

  7. Add two key frames for the created track: double-click the track line to add a key frame and set the following values:为创建的轨迹添加两个关键帧:双击轨迹线添加一个关键帧和以下值:

    • For the first key frame, set Time = 0 and Value = 1.对于第一个关键帧,设置 Time = 0 and Value = 1
    • For the second key frame, set Time = 1 and Value = 0.对于第二个关键帧,设置 Time = 1 and Value = 0

注意
If any Z-fighting occurs, you can also adjust Rendering Order for the box1 object’s material.如果发生任何 Z 冲突,您还可以为 box1 对象的材质调整 Rendering Order

The result will be the following:结果如下:

最新更新: 2023-12-19
Build: ()