当前位置:网站首页>UE4 后期处理体积 (角色受到伤害场景颜色变淡案例)
UE4 后期处理体积 (角色受到伤害场景颜色变淡案例)
2022-08-05 03:29:00 【Zhichao_97】
在上一篇博客中(UE4 第一人称角色模板 添加生命值和调试伤害)已经完成了角色生命值减少的功能,本文在此基础上通过后期处理组件来继续增加场景颜色随着生命值减少而变淡的效果。
效果:
在按下p键来减少生命值的同时,场景也随之失去颜色

步骤:
1.打开第一人称角色蓝图,点击添加组件-》后期处理组件

2.点击 编译,选中后期处理组件,设置优先级为1,这样它的优先级就会高于关卡中的体积

3.混合权重设为0,(混合权重表示在场景中的应用比例,0表示在默认情况下没有启用)

4.将饱和度设置为0,这样场景就会失去所有颜色

接下来使用混合权重来更新后期处理组件在场景中的应用比例
5.找到减少生命值的部分,如下图。接下来,我们希望在更新生命值的时候也更新后期处理体积和混合权重

6.将后期处理组件拖入

7.从后期处理组件中引出设置混合权重节点,这个节点也需要一个0~1的值

8.通过 已限制映射范围 来将生命值0~100的范围映射至0~1,生命值为100时我们希望后期处理组件在场景中的应用比例为0,因此要让混合权重的值为0,因此In Range A=100,对应的Out Range A=0;同样的道理,当生命值为0时,混合权重的值为1。

我感觉生命值低于70时再开始显示后期处理体积比较合适

边栏推荐
- Growth-based checkerboard corner detection method
- 2022-08-04 第六小组 瞒春 学习笔记
- What is the difference between SAP ERP and ORACLE ERP?
- 【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
- How to sort multiple fields and multiple values in sql statement
- Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
- rpc-remote procedure call demo
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- rpc-remote procedure call demo
- The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
猜你喜欢

开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..

Walter talked little knowledge | "remote passthrough" that something

【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can

MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现

Why did they choose to fall in love with AI?

The most effective seven performance testing techniques of software testing techniques

银行数据采集,数据补录与指标管理3大问题如何解决?

基于生长的棋盘格角点检测方法

Why is the pca component not associated

【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
随机推荐
包拉链不可用,但是是被另一个包。
Use @Mapper to query the partition status of oracle and report an error
运维监控系统之Open-Falcon
Defect detection (image processing part)
How to sort multiple fields and multiple values in sql statement
Burp installation and proxy settings
Initial solution of the structure
2022软件测试工程师最全面试题
XMjs cross-domain problem solving
The sword refers to Offer--find the repeated numbers in the array (three solutions)
Summary of domestic environments supported by SuperMap
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
为什么pca分量没有关联
[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)
用CH341A烧录外挂Flash (W25Q16JV)
Open-Falcon of operation and maintenance monitoring system
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto