Blender Git Commit Log

Git Commits -> Revision 9fb5559

Revision 9fb5559 by Manuel Castilla (master)
March 23, 2021, 11:04 (GMT)
Compositor: Display generated inputs in Viewers and Previews

Currently viewers and previews only display node trees that have at least one node with fixed resolution size. When all inputs are generated, nothing is displayed in most cases (RGB Node is displayed as a single pixel on previews). By generated I mean inputs not having resolution on their own, they create content dynamically given an output resolution.

This patch adds support for those cases by using an appropriate preferred resolution on Viewers/Previews which propagates to generated inputs as output resolution. Now:
- Viewers will display generated inputs with scene render resolution.
- Previews will display them with scene aspect ratio.
This is consistent with final render result and respects relative space.

The benefit for the user is being able to compose images without any input source. For example for creating mask images or simple backgrounds.

Reviewed By: Jeroen Bakker

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

Commit Details:

Full Hash: 9fb5559a0fb55d8b009d0df38323798be6647a44
Parent Commit: 8cac85a
Committed By: Jeroen Bakker
Lines Changed: +44, -19

5 Modified Paths:

/source/blender/compositor/intern/COM_NodeOperationBuilder.cc (+3, -1) (Diff)
/source/blender/compositor/operations/COM_PreviewOperation.cc (+24, -17) (Diff)
/source/blender/compositor/operations/COM_PreviewOperation.h (+5, -1) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.cc (+11, -0) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021