Blender Git Commit Log

Git Commits -> Revision 07961e5

June 7, 2021, 14:58 (GMT)
Overlay: Flash on Mode Transfer overlay

This implements T87633

This overlay renders a flash animation on the target object when
transfering the mode to it using the mode transfer operator.
This provides visual feedback when switching between objects without
extra overlays that affect the general color and lighting in the scene.

Differences with the design task:

- This uses just a fade out animation instead of a fade in/out animation.
The code is ready for fade in/out, but as the rest of the overlays
(face sets, masks...) change instantly without animation, having a fade
in/out effect gives the impression that the object flashes twice (once
for the face sets, twice for the peak alpha of the flash animation).

- The rendering uses a flat color without fresnel for now, but this can
be improved in the future to make it look more like the shader in the
prototype.

- Not enabled by default (can be enabled in the overlays panel), maybe
the defaults can change for 3.0 to disable fade inactive and enable this
instead.

Reviewed By: jbakker, JulienKaspar

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

Commit Details:

Full Hash: 07961e5358bd4652809e69777a3789016013ef35
Parent Commit: 01f2dad
Committed By: Jacques Lucke
Lines Changed: +206, -0

1 Added Path:

/source/blender/draw/engines/overlay/overlay_mode_transfer.c (+159, -0) (View)

8 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+3, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+8, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_private.h (+12, -0) (Diff)
/source/blender/editors/object/object_modes.c (+11, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+8, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021