Realtime Compositor: Support realization of transformations #111179

Merged
Omar Emara merged 3 commits from OmarEmaraDev/blender:realize-transformations into main 2023-08-18 10:00:25 +02:00
Member

This patch adds support for the realization of transformations of
operation inputs in the Realtime Compositor. Input socket declarations
can now include a preference to what sort of realization needs to
happen.

All inputs specify realization on the operation domain by default
because that is needed for the correct operation of most operations.

Nodes may choose not to be realized on the operation domain, like the
MapUV, Plane Deform, and Bokeh Blur nodes; that's because their inputs
are treated as transform-less image objects.

Nodes may chose to realize their rotation or scale, like operations that
are not rotation or scale invariant and thus need images of identity
transformations. No nodes are declared as such so far, as this is still
being considered by developers and test builds be published for testing.

This patch coincidently also fixes #102252 by declaring the Bokeh input
of the Bokeh Blur node to need realization of rotation.

Depends on #111178.
Fixes #102252.

This patch adds support for the realization of transformations of operation inputs in the Realtime Compositor. Input socket declarations can now include a preference to what sort of realization needs to happen. All inputs specify realization on the operation domain by default because that is needed for the correct operation of most operations. Nodes may choose not to be realized on the operation domain, like the MapUV, Plane Deform, and Bokeh Blur nodes; that's because their inputs are treated as transform-less image objects. Nodes may chose to realize their rotation or scale, like operations that are not rotation or scale invariant and thus need images of identity transformations. No nodes are declared as such so far, as this is still being considered by developers and test builds be published for testing. This patch coincidently also fixes #102252 by declaring the Bokeh input of the Bokeh Blur node to need realization of rotation. Depends on #111178. Fixes #102252.
Omar Emara added the
Interest
Compositing
Module
VFX & Video
labels 2023-08-16 13:39:02 +02:00
Omar Emara added 2 commits 2023-08-16 13:39:09 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
61c42b2c74
BLI: Add 2D transformation matrix decomposition
This patch adds support for 2D transformation matrix decomposition into
translation, rotation, and scale. This is needed by the realtime
compositor to implement automatic domain realization logic.
34353ba45d Realtime Compositor: Support realization of transformations
This patch adds support for the realization of transformations of
operation inputs in the Realtime Compositor. Input socket declarations
can now include a preference to what sort of realization needs to
happen.

All inputs specify realization on the operation domain by default
because that is needed for the correct operation of most operations.

Nodes may choose not to be realized on the operation domain, like the
MapUV, Plane Deform, and Bokeh Blur nodes; that's because their inputs
are treated as transform-less image objects.

Nodes may chose to realize their rotation or scale, like operations that
are not rotation or scale invariant and thus need images of identity
transformations. No nodes are declared as such so far, as this is still
being considered by developers and test builds be published for testing.

This patch coincidently also fixes #102252 by declaring the Bokeh input
of the Bokeh Blur node to need realization of rotation.

Depends on #111178.
Fixes #102252.
Omar Emara requested review from Sergey Sharybin 2023-08-16 13:39:42 +02:00
Author
Member

This is preparatory work for supporting automatic realization of rotation and scale in the realtime compositor. Test builds with relevant nodes declaring realization of rotation and scale will be provided based on this patch.

This is preparatory work for supporting automatic realization of rotation and scale in the realtime compositor. Test builds with relevant nodes declaring realization of rotation and scale will be provided based on this patch.
Omar Emara added 1 commit 2023-08-16 14:49:32 +02:00

I am a bit confused here. Are there expected functional changes already (i.e. in the way how Blur handles realization) or is it a technical aspect of making it possible to do "auto-realization" ?

I am a bit confused here. Are there expected functional changes already (i.e. in the way how Blur handles realization) or is it a technical aspect of making it possible to do "auto-realization" ?
Author
Member

@Sergey The only functional change is that the Bokeh Blur node now realizes the rotation of its Bokeh input, which was done to fix #102252.

#111216 and #111213 are test builds based on this patch to enable realization for relevant nodes.

@Sergey The only functional change is that the Bokeh Blur node now realizes the rotation of its Bokeh input, which was done to fix #102252. #111216 and #111213 are test builds based on this patch to enable realization for relevant nodes.
Sergey Sharybin approved these changes 2023-08-17 15:40:14 +02:00
Sergey Sharybin left a comment
Owner

I see, thanks for the details!
I think the patch is good.

I see, thanks for the details! I think the patch is good.
Omar Emara merged commit 726ba534fc into main 2023-08-18 10:00:25 +02:00
Omar Emara deleted branch realize-transformations 2023-08-18 10:00:27 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#111179
No description provided.