tornavis/source/blender/compositor
Omar Emara cc78fd4e93 Realtime Compositor: Allow limited compositing region
This patch allows the realtime compositor to be limited to a specific
compositing region that is a subset of the full render region. In the
context of the viewport compositor, when the viewport is in camera view
and has a completely opaque passepartout, the compositing region will be
limited to the visible camera region.

On the user-level, this gives the user the ability to make the result of
the compositor invariant of the aspect ratio, shift, and zoom of the
viewport, making the result in the viewport identical to the final
render compositor assuming size relative operations.

It should be noted that compositing region is the *visible* camera
region, that is, the result of the intersection of the camera region and
the render region. So the user should be careful not to shift or zoom
the view such that the camera border extends outside of the viewport to
have the aforementioned benefits. While we could implement logic to fill
the areas outside of the render region with zeros in some cases, there
are many other ambiguous cases where such a solution wouldn't work,
including the problematic case where the user zooms in very close,
making the camera region much bigger than that of the render region.

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

Reviewed By: Clement Foucault
2023-01-06 14:43:37 +02:00
..
intern Cleanup: hide 'UNUSED' macro definition for C++ 2022-12-20 19:16:33 -03:00
nodes Fix T103555: File output node saving to the wrong folder 2023-01-04 20:57:52 +11:00
operations Nodes: Add Exclusion color mix mode 2022-12-16 15:42:41 +00:00
realtime_compositor Realtime Compositor: Allow limited compositing region 2023-01-06 14:43:37 +02:00
tests Cleanup: replace UNUSED macro with commented args in C++ code 2022-10-03 17:38:16 -05:00
CMakeLists.txt Realtime Compositor: Add evaluator and engine 2022-08-10 09:14:22 +02:00
COM_compositor.h Cleanup: strip blank lines around comment blocks 2022-08-17 12:51:07 +10:00
COM_defines.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
COM_precomp.h File headers: add missing copyright, add MIT to SPDX licenses 2022-02-11 14:56:03 +11:00