Recently we submitted a version of our Beautify asset for Unreal engine. This plugin improves the quality of the image in real time and works as a post-processing effect.
Here’s a video of the setup:
The effect works out of the box and includes controls to tweak the strength and behaviour.
One aspect we may want to control is the sharpen strength from code, especially when the camera moves or rotates. Usually we want sharp images only when camera is not rotating fast contributing to a motion blur effect. Also, by reducing the sharpen intensity when camera moves fast, we can reduce any flickering caused by some bright pixels (especially in VR).
Below you can find the component source which can be added to any Actor in the scene. This component exposes two properties:
- Beautify Material Instance: drag & drop your material instance to this field. The component will create a dynamic material instance in order to modify the sharpen intensity value dynamically.
- Motion Sensibility: this is a value in the 0..1 range that acts as a threshold for the motion sensibility. The greater the value, the more sensitive to any camera movement/rotation.
Here’s the code: