GPv3: Soft mode for the Eraser tool #110310
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110310
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "amelief/blender:gpv3-erase-operator-soft-mode"
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?
Implementation of the soft mode of the eraser tool for grease pencil.
In this mode, the eraser decreases the opacity of the points it hits. The new opacity is computed as a minimum between the current opacity and a linear falloff function of the distance of the point to the center of the eraser.
If the opacity of a point falls below a threshold, then the point is removed from the curves.
to confirm, when we reach the threshold , is it creates the new points at the edge of the eraser gizmo? or it create points inside of it ? and thanks for your works, hope enjoy it
No, right now it only deletes the points that are transparent, and splits the curve accordingly.
Ideally, we would add new points in between at the positions where the opacity is at the threshold.
I don't think we can have that for this PR thought.
WIP: GPv3: Soft mode for the Eraser toolto GPv3: Soft mode for the Eraser tool9945798049
to01e3378a1a
01e3378a1a
to6d78ae7632
6d78ae7632
to822a302812
@ -577,0 +648,4 @@
for (const int src_point : src_points) {
src_remove_point[src_point] = (src_new_opacity[src_point] < opacity_threshold);
}
});
Maybe this could be split into a
CurvesGeometry
function that takes aIndexMask
and handles the point deleting and the topological changes, andsoft_eraser
only needs to handle the opacity.something like
Yes, that is one idea I have for refactoring the eraser in all modes. Right now, this PR is still pending because we would like to improve a bit the behavior of the soft eraser, so that it inserts points to respect at best the falloff and the radius of the brush tool.
The thing is, if we want to both insert and remove points, it would be best to do it in one pass, because we are going to re-build a new CurvesGeometry in both cases. So maybe this function would be more like
dst = insert_and_delete(src, points_to_delete, points_to_insert)
(or something similar).I agree with you that this is going to need a refactor, with the hard eraser mode as well.
822a302812
to858b552edd
858b552edd
to94ec1fae71
94ec1fae71
toa45ba83bab
0e68d7f01e
tobd31070d53
fc56c01c2c
tod0ad35a692
97e9f5a739
to94e6621f42
@blender-bot build