Blender Git Loki

Git Commits -> Revision f84414d

Revision f84414d by Clément Foucault (master)
June 19, 2020, 15:05 (GMT)
EEEVEE: Object Motion Blur: Initial Implementation

This adds object motion blur vectors for EEVEE as well as better noise
reduction for it.

For TAA reprojection we just compute the motion vector on the fly based on
camera motion and depth buffer. This makes possible to store another motion
vector only for the blurring which is not useful for TAA history fetching.

Motion Data is saved per object & per geometry if using deformation blur.
We support deformation motion blur by saving previous VBO and modifying the
actual GPUBatch for the geometry to include theses VBOs.

We store Previous and Next frame motion in the same motion vector buffer
(RG for prev and BA for next). This makes non linear motion blur (like
rotating objects) less prone to outward/inward blur.

We also improve the motion blur post process to expand outside the objects
border. We use a tile base approach and the max size of the blur is set via
a new render setting.

We use a background reconstruction method that needs another setting
(Background Separation).

Sampling is done using a fixed 8 dithered samples per direction. The final
render samples will clear the noise like other stochastic effects.

One caveat is that hair particles are not yet supported. Support will
come in another patch.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D7297

Commit Details:

Full Hash: f84414d6e14c42bf0f96b128c35d29bc2da59087
Parent Commit: e18d6f5
Lines Changed: +1220, -219

3 Added Paths:

/source/blender/draw/engines/eevee/shaders/effect_velocity_tile_frag.glsl (+151, -0) (View)
/source/blender/draw/engines/eevee/shaders/object_motion_frag.glsl (+27, -0) (View)
/source/blender/draw/engines/eevee/shaders/object_motion_vert.glsl (+23, -0) (View)

31 Modified Paths:

/release/scripts/startup/bl_ui/properties_render.py (+2, -1) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+8, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+3, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_data.c (+124, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_effects.c (+18, -9) (Diff)
/source/blender/draw/engines/eevee/eevee_engine.c (+58, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+3, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_motion_blur.c (+312, -114) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+68, -6) (Diff)
/source/blender/draw/engines/eevee/eevee_render.c (+7, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_temporal_sampling.c (+6, -4) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl (+209, -38) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_temporal_aa.glsl (+11, -8) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl (+9, -9) (Diff)
/source/blender/draw/intern/draw_cache.c (+26, -0) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+5, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+10, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+17, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_metaball.c (+12, -0) (Diff)
/source/blender/draw/intern/draw_cache_inline.h (+13, -11) (Diff)
/source/blender/draw/intern/draw_manager.c (+2, -9) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+18, -2) (Diff)
/source/blender/draw/intern/DRW_render.h (+5, -1) (Diff)
/source/blender/gpu/GPU_vertex_buffer.h (+2, -0) (Diff)
/source/blender/gpu/GPU_vertex_format.h (+4, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_buffer.c (+29, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_format.c (+14, -0) (Diff)
/source/blender/makesdna/DNA_scene_defaults.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+17, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021