Compositor: Port GPU Vector Blur to CPU #120135

Merged
Omar Emara merged 12 commits from OmarEmaraDev/blender:cpu-vector-blur into main 2024-04-05 09:48:12 +02:00
Member

This patch ports the GPU Vector Blur node to the CPU, which is in turn
ported from EEVEE. This is a breaking change since it produces different
motion blur results that are more similar to EEVEE's motion blur.
Further, the Curved, Minimum, and Maximum options were removed on the
user level since they are not used in the new implementation.

There are no significant changes to the code, except in the max velocity
computation as well as the velocity dilation passes. The GPU code uses
atomic indirection buffers, while the CPU runs single threaded for the
dilation pass, since it is a fast pass anyways. However, we impose
artificial constraints on the precision of the dilation process for
compatibility with the atomic implementation.

There are still tiny differences between CPU and GPU that I haven't been
able to solve, but I shall solve them in a later patch.

This patch ports the GPU Vector Blur node to the CPU, which is in turn ported from EEVEE. This is a breaking change since it produces different motion blur results that are more similar to EEVEE's motion blur. Further, the Curved, Minimum, and Maximum options were removed on the user level since they are not used in the new implementation. There are no significant changes to the code, except in the max velocity computation as well as the velocity dilation passes. The GPU code uses atomic indirection buffers, while the CPU runs single threaded for the dilation pass, since it is a fast pass anyways. However, we impose artificial constraints on the precision of the dilation process for compatibility with the atomic implementation. There are still tiny differences between CPU and GPU that I haven't been able to solve, but I shall solve them in a later patch.
Omar Emara added the
Interest
Compositing
Module
VFX & Video
labels 2024-04-01 11:19:45 +02:00
Omar Emara added 1 commit 2024-04-01 11:19:54 +02:00
f13a31d4b2 Compositor: Port GPU Vector Blur to CPU
This patch ports the GPU Vector Blur to the CPU.
Omar Emara added 4 commits 2024-04-02 13:25:13 +02:00
Omar Emara added 1 commit 2024-04-02 14:22:18 +02:00
Omar Emara added 3 commits 2024-04-04 13:44:49 +02:00
Omar Emara added 1 commit 2024-04-04 14:20:47 +02:00
Omar Emara changed title from WIP: Compositor: Port GPU Vector Blur to CPU to Compositor: Port GPU Vector Blur to CPU 2024-04-04 14:27:10 +02:00
Omar Emara requested review from Sergey Sharybin 2024-04-04 14:36:44 +02:00
Omar Emara added 1 commit 2024-04-04 14:39:33 +02:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-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
533d2193a2
Add a reference to GPU implementation
Sergey Sharybin approved these changes 2024-04-04 16:36:57 +02:00
Author
Member

@blender-bot build

@blender-bot build
Omar Emara added 1 commit 2024-04-05 09:47:43 +02:00
Omar Emara merged commit b229d32086 into main 2024-04-05 09:48:12 +02:00
Omar Emara deleted branch cpu-vector-blur 2024-04-05 09:48:15 +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#120135
No description provided.