Compositor: Use RBF Interpolation in Keying Screen node #112480
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#112480
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "OmarEmaraDev/blender:rbf-keying-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This patch changes the interpolation algorithm utilized by the Keying
Screen node to a Gaussian Radial Basis Function Interpolation. This is
proposed because the current Voronoi triangulation based interpolation
has the following properties:
tracking markers change position.
the artists sense.
rasterization algorithm.
On the other hand, the RBF interpolation method is temporally stable and
continuous, smooth and infinitely differentiable, and relatively simple
to compute assuming low number of markers, which is typically the case
for keying screen objects.
This breaks backward compatibility, but the keying screen is only used
as a secondary input for keying in typical compositor setups, so one
should expect minimal difference in outputs.
Here is a comparison between both the triangulation method and the RBF method.
The patch still needs to be cleaned up and versioned, but it is done at its core. I wanted to get some feedback first.
That is a very interesting results! It does sound like it should give much better results for keying, but extra testing would be very welcome.
@sebastian_k Do you have some existing configurations to test this change?
@OmarEmaraDev Since you've mentioned you still plan to do some cleanup I did not dig deep into the code. Also with rapid frame changes I've managed to crash Blender. Not sure yet if that's related to this change. Maybe you can try to confirm it on your side?
@blender-bot package
Package build started. Download here when ready.
@Sergey I can't reproduce the crash. Can you share the file or a stacktrace?
The crash actually is not related to this patch, i can reproduce it on the main branch and CPU tiled compositor. I can have a look into it next week, no need to consider it a stopper for this patch.
P.S. To reproduce the crash track some simple footage with handful of markers, add those as a keying screen, and scrub timeline while compositor backdrop is enabled.
The RBF results look better and much closer to the lighting variation patterns seen in actual green screens.
How soon can the GPU version of this be done?
I can't seem to understand why the crash happens. Maybe @iss can give me some pointers?
Hey, this does look like a very cool improvement!
The keying screen looks much more even than before and matches better the way light behaves on the actual greenscreen.
I do not have an existing config though because I rarely use the keying screen. Partly due to the artifacts that sometimes occur with the triangulation method in fact...
So yes, in those cases where a keyscreen is needed this should give better results. The smoothness control is also very useful!
@Sergey I added versioning, so patch should be ready.
Looks like crash in ffmpeg, Can you make report for that?