官方文档:
https://docs.unrealengine.com/en-US/Engine/Rendering/PostProcessEffects/index.html
PostProcessEffect影响游戏最终的视觉效果。正确地使用它,能使游戏增色不少。
UE默认的渲染方式为延迟渲染(deffered rendering)。在deffered rendering中,G-Buffers扮演着重要的角色。我们可以在view port的view mode中选择buffer visualization模式,来查看各个g-buffer。这些g-buffer作为输入,经过光照计算等步骤后,输出最终的显示结果。

在post process material中,有一个关键节点SceneTexture:


我们通过它可以获得g-buffer中的各种纹理,作为post process effect的输入,然后,就是一堆数学计算了。
Post process effect对于渲染的顺序比较敏感。当渲染出现问题时,可以尝试改变后期处理效果的顺序来解决问题。比如常见的屏幕抖动,是由于temporary AA造成的,你应该把渲染提前到Before Tonemapping。

应用post process effect,你需要post process volume或者是带有post process component的actor。
Chameleon (变色龙)
这是虚幻商城中的一个post process资源包,包含大量效果(有些效果引擎也有内置),在这里列出,供以后查询。【开开眼,有如此多的屏幕特效!!!】
https://www.unrealengine.com/marketplace/en-US/slug/chameleon
当然,如果有需求,我们可以修改里面的material,或者重新写新的material。即使不在实际工程中使用,作为学习资料也是很有用的。
说到学习资料,自然不能漏了大名鼎鼎的shader toy。只是入坑需谨慎,一般人还真看不懂。
https://www.shadertoy.com/
作者搭建了demo场景,目前共有7个房间。
Room 1 |
---|
2D Transform (2D 形变) |
Actor Featurette (演员特写) |
Alarm (警报) |
Alcohol (醉酒) |
Anamorphic Lens Flares (失真的镜头光晕) |
ASCII (ascii字符) |
Bleach Bypass (略过漂白) |
Blur (模糊) |
Camera Shake (相机摇晃) |
Channel Clamper (色彩通道clamper) |
Room 2 |
---|
Channel Swapper (通道交换) |
Circles (圆点) |
Colored AO (着色的AO) |
Colorize (类似cartoon的着色) |
Comic (滑稽的效果) |
Custom Depth Highlighter (Custom Depth高亮显示) |
Custom Depth Highlighter (Clip) (Custom Depth高亮显示【被裁减的物体】) |
Digitize(数字化) |
Disco Ball (Disco球的效果) |
Distance Distortion(基于距离的扭曲) |
Room 3 |
---|
Distance Fog (距离雾) |
Drawing (手绘) |
Drug (药嗑多了) |
Edge Detect (边缘检测) |
Emboss (浮雕,凹凸印) |
Frost (霜) |
Glitch (屏幕故障) |
Grid Cell (网格化) |
Hard Emboss (硬浮雕) |
Haunted (鬼屋) |
Room 4 |
---|
Hazy Lights (朦胧光) |
Hue Panner (色相平移) |
Infected (被感染了) |
Invert (反色) |
Iridescent (钻石般闪耀) |
Kaleidescope (万花筒) |
Kuwahara (Kuwahara滤波,平滑图像) |
Lens (透镜,瞄准镜) |
Letterboxing (黑边) |
LOOK!Color Grading (色彩分级)—— 用得非常多 |
Room 5 |
---|
Magic Transitions (神奇的过场) |
Melted World (消融的世界) |
Mojo (魔力,符文之力) |
Monitor Effects(监视器效果) |
MonoChrome (单色) |
Mosaic(马赛克) |
Neon(霓虹) |
Pixel Dissolve(像素溶解) |
Pulse(冲击) |
Pyramid(金字塔,棱锥) |
Room 6 |
---|
Radial Blur (径向模糊) |
Scratches ( 划痕) |
Screen Damage (伤害) |
Screen Decals (贴花) |
Screen Drops (水滴滑落) |
Screen Fire (火焰) |
Screen Waves ( 波的分布) |
Selective Color(只显示选定色相,其他则黑白) |
Sharpen(锐化) |
Sketch(速写) |
Room 7 |
---|
Snow |
Sonar |
Squares |
Tiles |
Toon Shading |
TV Noise |
Wired |
World Splash |
World Glitch |
Zone |
Room 1
-
2D Transform
-
Actor Featurette
-
Alarm
-
Alcohol
-
Anamorphic Lens Flares
-
ASCII
-
Bleach Bypass
-
Blur
-
Camera Shake
别看了,静态图你看不出效果的o( ̄︶ ̄)o
-
Channel Clamper
Room 2
-
Channel Swapper
-
Circles
-
Colored AO
-
Colorize
-
Comic
-
Custom Depth Highlighter
-
Custom Depth Highlighter(Clip)
-
Digitize
-
Disco Ball
-
Distance Distortion
Room 3
-
Distance Fog
-
Drawing
-
Drug (跟Alcohol有些类似)
-
Edge Detect
-
Emboss
-
Frost
-
Glitch
-
Grid Cell
-
Hard Emboss
-
Haunted
Room 4
-
Hazy Lights
-
Hue Panner
-
Infected
-
Invert
-
Iridescent
-
Kaleidescope
-
Kuwahara
-
Lens
-
Letterboxing
-
LOOK!Color Grading
Room 5
-
Magic Transitions
-
Melted World
-
Mojo
-
Monitor Effects
-
MonoChrome
-
Mosaic
-
Neon
-
Pixel Dissolve
-
Pulse
-
Pyramid
Room 6
-
Radial Blur
-
Scratches
-
Screen Damage
-
Screen Decals
-
Screen Drops
-
Screen Fire
-
Screen Waves
-
Selective Color
-
Sharpen
-
Sketch (太暗了)
Room 7
-
Snow
-
Sonar
-
Squares
-
Tiles
-
Toon Shading
-
TV Noise
-
Wired
-
World Splash
-
World Glitch
-
Zone
网友评论