Compositor: Allow variable Kuwahara size #112946
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
Code Documentation
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#112946
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "OmarEmaraDev/blender:variable-kuwahara-size"
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 size property of the Kuwahara into a node socket
to allow variable size Kuwahara.
@blender-bot package
Package build started. Download here when ready.
@DGruwier Here is a test build for variable size Kuwahara. It is only implemented for the realtime compositor for now. Can you give it a test and perhaps provide some practical examples?
@OmarEmaraDev Works beautifully! I'll make some examples of it in action.
@OmarEmaraDev Three quick practical examples:
The video is a "focus pull" using the Kuwahara node instead of blur, with zdepth as the size. With stylized looks being "in" in 3D animation at the moment, I'd be very surprised if we don't see this exact thing used in an animated movie down the road.
The render with the coffee carts is using an AOV to pass a custom object attribute to the filter, having effectively a "stylization amount" parameter you can turn up and down per object. It'll be really powerful once AOVs work in the realtime compositor.
The stock photo with the person and dog is just the same thing as the squirrel example from before, more of an image editing or more advanced rotoscoping example. Painted a dirty detail map and used it as the input for the size. I can imagine creating these masks with simple rotoscoping (or tracking it with something like EbSynth), but you could also paint this as a weight map on animated geometry and pass it to the compositor. Combine it with the depth map method and the per-object attribute method, and have ultimate control.
Works great, extremely powerful workflow for getting that nice stylized painterly look. I'll definitely be playing with this a lot.
@Sergey What do you think?
(Windows / RTX 2060 Super)
There's noise with Classic mode with a low (or 0.0) size value.
kuwahara_noise.blend
It's very subtle when a scene's brightness is low. It's more apparent (like the picture above) with a strong light.
@persun This happens only with this patch?
Yes.
In the latest daily build:
Sorry I removed the emission material from the file while removing other materials to make it a simple file. Re-uploaded so it's in the reproducible condition right away.
kuwahara_noise (1).blend
@OmarEmaraDev This seems to be very powerful tool for artists.
Not sure what sort of feedback you're expecting at this time, but just general point apply about keeping parity with the CPU compositor. From studying the patch seems it is not hard to do so (unless I am missing something).
WIP: Realtime Compositor: Allow variable Kuwahara sizeto Realtime Compositor: Allow variable Kuwahara sizeI think the description needs to be updated, as it is now implemented for all compositors. It is also not very clear to me whether the issue reported by Sun Kim is now fixed.
That being said the code looks fine, and I did not encounter issues while testing the patch. So we are getting very close!
@Sergey The reported issue is fixed indeed. I am not sure what you mean regarding the patch description, the statement of it being for the realtime compositor only is just a comment, would like it removed or updated?
@OmarEmaraDev The title says "Realtime compositor", but on the code side it seems to be implemented for the CPU compositor as well?
Right, the title, sorry, will update that.
Realtime Compositor: Allow variable Kuwahara sizeto Compositor: Allow variable Kuwahara sizeLovely, thanks!
@OmarEmaraDev Hi, thanks for the patch!
Unfortunately the noise still appears to me but in a different range of size value, see #113578
Thanks for this update. Much nicer result.
I hope elliptical Kuwahara will appear too… once…