Compositor: implement interpolation methods for Translate node #119603

Open
Habib Gahbiche wants to merge 10 commits from zazizizou/blender:com-translate-interp into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Part of #119592

  • Expose interpolation methods Nearest, Bilinear and Bicubic to the user for translate node

Todos:

  • update test data (Failing tests are expected, since these nodes are using the TranslateOperation)
Part of #119592 - Expose interpolation methods Nearest, Bilinear and Bicubic to the user for translate node Todos: - [ ] update test data (Failing tests are expected, since these nodes are using the `TranslateOperation`)
Habib Gahbiche added 1 commit 2024-03-17 21:45:42 +01:00
Habib Gahbiche added 2 commits 2024-03-23 14:57:36 +01:00
Habib Gahbiche added 1 commit 2024-03-24 11:34:10 +01:00
Habib Gahbiche added 1 commit 2024-03-24 11:55:56 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
b94c26c785
Make format
Habib Gahbiche changed title from WIP: Compositor: implement interpolation methods for Translate node to Compositor: implement interpolation methods for Translate node 2024-03-24 11:56:09 +01:00
Habib Gahbiche added the
Meta
Good First Issue
label 2024-03-24 11:59:43 +01:00
Author
Member

@blender-bot build

@blender-bot build
Habib Gahbiche removed the
Meta
Good First Issue
label 2024-03-24 12:09:58 +01:00
Habib Gahbiche requested review from Omar Emara 2024-03-24 21:51:26 +01:00
Omar Emara requested changes 2024-03-26 08:41:04 +01:00
Dismissed
@ -285,6 +285,19 @@ class MemoryBuffer {
get_relative_y(y));
}
void read_elem_bicubic_mitchell(float x, float y, float *out) const
Member

I would first add bicubic support in a separate patch.

I would first add bicubic support in a separate patch.
zazizizou marked this conversation as resolved
@ -287,1 +287,4 @@
void read_elem_bicubic_mitchell(float x, float y, float *out) const
{
BLI_assert_msg(num_channels_ == 4, "bicubic interpolation assumes a 4 channel input buffer");
Member

Why limit that to 4 channels? Just pass in the number of channels.

Why limit that to 4 channels? Just pass in the number of channels.
zazizizou marked this conversation as resolved
@ -288,0 +289,4 @@
{
BLI_assert_msg(num_channels_ == 4, "bicubic interpolation assumes a 4 channel input buffer");
float4 res = math::interpolate_cubic_mitchell_fl(
Member

The GPU compositor uses BSpline not Mitchell, so if we decide to use it, we need to update the GPU compositor as well.

The GPU compositor uses `BSpline` not `Mitchell`, so if we decide to use it, we need to update the GPU compositor as well.
zazizizou marked this conversation as resolved
Habib Gahbiche added 2 commits 2024-03-27 22:23:02 +01:00
Habib Gahbiche added 3 commits 2024-04-28 11:57:18 +02:00
Omar Emara approved these changes 2024-04-30 10:25:13 +02:00
Omar Emara left a comment
Member

This introduces more interpolation differences between CPU and GPU, but they are not really related to the patch, so can be handled separatly.

This introduces more interpolation differences between CPU and GPU, but they are not really related to the patch, so can be handled separatly.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u com-translate-interp:zazizizou-com-translate-interp
git checkout zazizizou-com-translate-interp
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#119603
No description provided.