blender/release
Jeroen Bakker d49e7b82da Compositor: Redesign Cryptomatte node for better usability
In the current implementation, cryptomatte passes are connected to the node
and elements are picked by using the eyedropper tool on a special pick channel.

This design has two disadvantages - both connecting all passes individually
and always having to switch to the picker channel are tedious.

With the new design, the user selects the RenderLayer or Image from which the
Cryptomatte layers are directly loaded (the type of pass is determined by an
enum). This allows the node to automatically detect all relevant passes.

Then, when using the eyedropper tool, the operator looks up the selected
coordinates from the picked Image, Node backdrop or Clip and reads the picked
object directly from the Renderlayer/Image, therefore allowing to pick in any
context (e.g. by clicking on the Combined pass in the Image Viewer). The
sampled color is looked up in the metadata and the actual name is stored
in the cryptomatte node. This also allows to remove a hash by just removing
the name from the matte id.

Technically there is some loss of flexibility because the Cryptomatte pass
inputs can no longer be connected to other nodes, but since any compositing
done on them is likely to break the Cryptomatte system anyways, this isn't
really a concern in practise.

In the future, this would also allow to automatically translate values to names
by looking up the value in the associated metadata of the input, or to get a
better visualization of overlapping areas in the Pick output since we could
blend colors now that the output doesn't have to contain the exact value.

Idea + Original patch: Lucas Stockner
Reviewed By: Brecht van Lommel

Differential Revision: https://developer.blender.org/D3959
2021-03-16 07:43:17 +01:00
..
bin Cleanup: spelling 2017-04-27 21:41:03 +10:00
darwin UI: use system generated document icon on macOS 2021-02-03 17:14:46 +01:00
datafiles Fix wrong white point of Linear ACES in config reading and the bundled config 2021-03-10 16:56:27 +01:00
freedesktop Docs: 2.92 release description for Linux appdata 2021-02-24 17:24:11 +01:00
license Licenses: Attribution document 2020-12-11 18:44:11 +01:00
lts Blender LTS: Download + Release notes CMS scripts 2020-12-09 09:14:53 +01:00
scripts Compositor: Redesign Cryptomatte node for better usability 2021-03-16 07:43:17 +01:00
steam Steam Release: Script creation of Steam build files 2020-12-16 11:15:18 +01:00
text Move license files to license subfolder 2020-09-24 12:49:36 +02:00
windows Windows: Add "--debug-cycles" argument to "blender_debug_gpu.bat" batch file 2021-01-21 16:47:16 +01:00