Language:
Page Info
Skill Level:
Engine Version:
Share
此中文页面内容对应的英文页面有后续更新,如需浏览最新文档可切换至英文页面浏览。

Radial Motion Blur

本页面的内容:

PerBoneMotionBlurTopicImage-1.png

The standard Motion blur that Unreal Engine 4 (UE4) supports produces visual errors when applied to quickly rotating objects such as car wheels. To help address this issue a special Radial Motion Blur Material was developed that can be used to control how a quickly rotating object is blurred. 

To use the Radial Motion Blur Material in your UE4 project you will first need to make sure the UE4 editor is closed and then locate your project's DefaultEngine.ini file. In the DefaultEngine.ini file, look for the [/Script/Engine.RendererSettings] section and add r.CustomDepth=3 saving the file when done.

RadialMotionBlur_iniSettings.png

The Radial Motion Blur Material requires that you make a "dummy" Actor that covers the entire Actor that you want to apply Radial Motion Blur to.  In the example image below the "dummy" object (right) is an exact copy of the Static Mesh (left) just without the Material applied to it. 

Click for full image.

Select the "dummy" Actor that was added and apply the MI_RadialMotionBlur Material Instance to it.

Click for full image.

If you would like to use the M_RadialMotionBlur Material in another UE4 project, you can use the Migration Tool to move the Material to a different UE4 project.

Now, select the Actor that needs to be affected by the Motion Blur and under the Advanced section of the Rendering options set the following two parameters:

Click for full image.

Option

Description

Render Custom Depth Pass

True

Custom Depth Stencil Value

5.0

To control the look of the Radial Blur, you can adjust the Angle and RimRadius parameters that are found in the MI_RadialMotionBlur Material Instance.

PerBoneMotionBlur_MISettings.jpg

The following two image sequences show how the visuals of the Radial Blur are affected when you adjust the Angle and RimRadius Material inputs.

This Angle parameter is used to control the intensity of the Radial Blur.

The RimRadius parameter is used to limit what will be blurred by the Radial Blur. You should set the RimRadius to match the radius of the mesh that is used for the Radial Blur.