Weight Paint: Blur brush performs paint with average rather than true blur. #34596

Closed
opened 2013-03-11 14:24:48 +01:00 by Josh Wedlake · 8 comments

%%%After an email conversation with Antony Riakiotakis, he suggested that I submit this issue to the tracker. IMHO this is likely to be closed or marked low priority as it is more of a design flaw with the current system than an accidental bug. Please let me know if there is a more appropriate place for this report or how to file a TODO. Antony wrote to me:

"this indeed looks hard to solve properly. But it could be done. Thanks, but I would really prefer this was in the tracker. I may not be able to handle the bug in a timely manner (remember, I'm doing this on a voluntary basis and I have a ton of other stuff to do and fix already!) And it would be good if others are at least aware of it."

My original email to Antony...

It seems to me from reading the code that the blur brush actually does a 'paint with average' rather than a true blur. I think it just samples the average of all the weights/vcols/pixels under the brush and then paints every vertex/pixel under the brush with the sample result. So if you use blender's blur brush over a contrasty border in weight paint mode...
(see http://www.pasteall.org/pic/46983 , top), rather than softening the edge as a blur brush would in GIMP or PS, it paints the whole under-brush region with the average value under the brush.

In the lower half of the image (http://www.pasteall.org/pic/46983 again) I've simulated (with python) the effect a blur brush should (IMHO) have, where verts/pixels get blended towards the weights/vcols/values of their neighbours (topological neighbours or within a screen space radius?). I guess to work really well there would need to be a separate control for the blur radius and brush radius. The blur radius being the distance from each vertex/pixel for which the neighbours are sampled.

Another nasty (or perhaps desirable in some cases?) side effect of the current blur brush is that it has a directional effect. In this next image ( http://www.pasteall.org/pic/46984 ) the top stroke was painted L to R, while the bottom stroke was painted R to L. So "scrubbing" back and forth with the blur brush over a contrasty border which you want to smooth can be quite tricky and you need to remember which way to drag the brush last.

I expect many users have got used to the current toolset and I realise that a proper blur brush might be very slow (though I believe that the smooth brush in sculpt mode must use a "tend to neighbours" algorithm, except in sculpt mode obviously vertex co's are 'blurred' rather than vcol/vweight etc).

I've attached a blend file with instructions to recreate the images linked here, as well as a python script which does a true blur.

Thanks!%%%

%%%After an email conversation with Antony Riakiotakis, he suggested that I submit this issue to the tracker. IMHO this is likely to be closed or marked low priority as it is more of a design flaw with the current system than an accidental bug. Please let me know if there is a more appropriate place for this report or how to file a TODO. Antony wrote to me: "this indeed looks hard to solve properly. But it could be done. Thanks, but I would really prefer this was in the tracker. I may not be able to handle the bug in a timely manner (remember, I'm doing this on a voluntary basis and I have a ton of other stuff to do and fix already!) And it would be good if others are at least aware of it." My original email to Antony... It seems to me from reading the code that the blur brush actually does a 'paint with average' rather than a true blur. I think it just samples the average of all the weights/vcols/pixels under the brush and then paints every vertex/pixel under the brush with the sample result. So if you use blender's blur brush over a contrasty border in weight paint mode... (see http://www.pasteall.org/pic/46983 , top), rather than softening the edge as a blur brush would in GIMP or PS, it paints the whole under-brush region with the average value under the brush. In the lower half of the image (http://www.pasteall.org/pic/46983 again) I've simulated (with python) the effect a blur brush should (IMHO) have, where verts/pixels get blended towards the weights/vcols/values of their neighbours (topological neighbours or within a screen space radius?). I guess to work really well there would need to be a separate control for the blur radius and brush radius. The blur radius being the distance from each vertex/pixel for which the neighbours are sampled. Another nasty (or perhaps desirable in some cases?) side effect of the current blur brush is that it has a directional effect. In this next image ( http://www.pasteall.org/pic/46984 ) the top stroke was painted L to R, while the bottom stroke was painted R to L. So "scrubbing" back and forth with the blur brush over a contrasty border which you want to smooth can be quite tricky and you need to remember which way to drag the brush last. I expect many users have got used to the current toolset and I realise that a proper blur brush might be very slow (though I believe that the smooth brush in sculpt mode must use a "tend to neighbours" algorithm, except in sculpt mode obviously vertex co's are 'blurred' rather than vcol/vweight etc). I've attached a blend file with instructions to recreate the images linked here, as well as a python script which does a true blur. Thanks!%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Reminder to others: This is vertex/weight, not texture paint.%%%

%%%Reminder to others: This is vertex/weight, not texture paint.%%%

%%%Correction: Vertex paint seems to work. Weight paint does not.%%%

%%%Correction: Vertex paint seems to work. Weight paint does not.%%%

%%%Since this is working as intended, I dont think its a bug, but thanks for the comprehensive info and this is a good TODO.

Noted here:
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Weight_Paint%%%

%%%Since this is working as intended, I dont think its a bug, but thanks for the comprehensive info and this is a good TODO. Noted here: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Weight_Paint%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Author

%%%Thanks Campbell & Antony,
best wishes, Josh%%%

%%%Thanks Campbell & Antony, best wishes, Josh%%%

Changed status from 'Archived' to: 'Resolved'

Changed status from 'Archived' to: 'Resolved'

Weight paint blur has been improved, 84d8b35d6c

Weight paint blur has been improved, 84d8b35d6c
Sign in to join this conversation.
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
3 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#34596
No description provided.