Cycles: Added Cryptomatte output.
authorStefan Werner <stefan.werner@tangent-animation.com>
Sun, 28 Oct 2018 09:37:41 +0000 (05:37 -0400)
committerStefan Werner <stefan.werner@tangent-animation.com>
Sun, 28 Oct 2018 09:37:41 +0000 (05:37 -0400)
commite58c6cf0c678849cf9c348a8df5e0ec24a6abd4d
tree7c6dc887ad93e87ad56c3d0c627265a99c7f1e7d
parentc0b3e3daebd36a483e659d32e6517f2fb9b0e277
Cycles: Added Cryptomatte output.

This allows for extra output passes that encode automatic object and material masks
for the entire scene. It is an implementation of the Cryptomatte standard as
introduced by Psyop. A good future extension would be to add a manifest to the
export and to do plenty of testing to ensure that it is fully compatible with other
renderers and compositing programs that use Cryptomatte.

Internally, it adds the ability for Cycles to have several passes of the same type
that are distinguished by their name.

Differential Revision: https://developer.blender.org/D3538
32 files changed:
intern/cycles/blender/addon/engine.py
intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_object.cpp
intern/cycles/blender/blender_session.cpp
intern/cycles/blender/blender_sync.cpp
intern/cycles/blender/blender_sync.h
intern/cycles/device/device_cpu.cpp
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/geom/geom_object.h
intern/cycles/kernel/kernel_globals.h
intern/cycles/kernel/kernel_id_passes.h [new file with mode: 0644]
intern/cycles/kernel/kernel_passes.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/kernels/cuda/kernel.cu
intern/cycles/kernel/kernels/opencl/kernel.cl
intern/cycles/kernel/split/kernel_buffer_update.h
intern/cycles/render/CMakeLists.txt
intern/cycles/render/buffers.cpp
intern/cycles/render/buffers.h
intern/cycles/render/coverage.cpp [new file with mode: 0644]
intern/cycles/render/coverage.h [new file with mode: 0644]
intern/cycles/render/film.cpp
intern/cycles/render/film.h
intern/cycles/render/object.cpp
intern/cycles/render/object.h
intern/cycles/render/shader.cpp
intern/cycles/util/CMakeLists.txt
intern/cycles/util/util_atomic.h
intern/cycles/util/util_murmurhash.cpp [new file with mode: 0644]
intern/cycles/util/util_murmurhash.h [new file with mode: 0644]