Blender Git Commit Log

Git Commits -> Revision c0816cd

Revision c0816cd by Lukas Stockner (master)
November 26, 2018, 16:31 (GMT)
Workbench: Add Curvature overlay for better visibility of surface detail for e.g. sculpting

The approach is fairly simple, just apply an edge detection filter to the view normal and scale the brightness based on that.

The overlay is disabled at object boundaries to avoid dark lines around objects.

Generally, this implementation follows the proposal of @monio at https://blender.community/c/rightclickselect/J9bbbc.
The changes are:
- Dynamic filter radius (on high-DPI displays, a radius of two is used)
- Options to reduce the strength of both ridges and valleys
- Tweaked function for the strength reduction (the original method actually had a local maximum, resulting in a brighter line inside valleys)
- Multiplication for blending instead of overlay, which doesn't work reliably with scene-referred intensities
- Renamed to point out the distinction between it and the SSAO-based cavity overlay

Reviewers: jbakker

Reviewed By: jbakker

Subscribers: billreynish, manitwo, linko, monio

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

Commit Details:

Full Hash: c0816cd03b42399e75a285d5e5dd1319e5054f17
Parent Commit: 9238b73
Lines Changed: +165, -28

1 Added Path:

/source/blender/draw/engines/workbench/shaders/workbench_curvature_lib.glsl (+40, -0) (View)

13 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+19, -10) (Diff)
/source/blender/blenkernel/intern/screen.c (+2, -0) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+14, -1) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_data_lib.glsl (+3, -1) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_deferred_composite_frag.glsl (+6, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_data.c (+3, -0) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+6, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+2, -0) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+18, -6) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+9, -5) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+30, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021