Page MenuHome

Compositor: Support backdrop offset for the Viewer node
Needs RevisionPublic

Authored by Habib Gahbiche (zazizizou) on Mar 19 2022, 4:54 PM.

Details

Summary

This is only part of the experimental "Full Frame" mode (disabled
by default). See T88150.

Currently the viewer node uses buffer paddings to display image offset
in the backdrop as a temporal solution implemented for D12466: Compositor: Add support for canvas compositing.
This solution is inefficient memory and performance-wise. Another
issue is that the paddings are part the image when saved.

This patch instead sets the offset in the Viewer node image
as variables and makes the backdrop take it into account
when drawing the image or any related gizmo.

Note: This patch also fixes the panning problem from D12750

Diff Detail

Repository
rB Blender
Branch
comp_backdrop_offset (branched from master)
Build Status
Buildable 21118
Build 21118: arc lint + arc unit

Event Timeline

Sorry for the late reply.

After merging master in, there are some artifacts when viewing the viewer node in an image editor.

It seems that the checker board is also moved. (Could be related to other fixes)
Perhaps we should in this case crop the viewer node result so it looks the same as it used to.

Jeroen Bakker (jbakker) requested changes to this revision.May 13 2022, 1:52 PM
This revision now requires changes to proceed.May 13 2022, 1:52 PM