Grease Pencil: various issues #57818

Open
opened 2018-11-13 22:22:03 +01:00 by Campbell Barton · 13 comments

Note: this tasks can be split up once we get feedback on issues, for now this is to discuss changes to make.


  • Brush pixels are not pixels,
shouldn't we use a meaningful value?
(pixels or blender units).
  • Grease pencil brushes have material pointers which are globally overwritten.
When you set a material, all brushes are looped over and have their material values clobbered.
Why have a material attached to the brush at all? This could be a scene level setting (or at least not stored per-brush).
See: `BKE_brush_update_material` called by rna `rna_Brush_material_update` when setting any material.
  • Grease pencil sculpt uses it's own brush system,
is there a good reason for this?
Since these brushes are fairly advanced (pressure & curve mapping options)
wouldn't it be better to use the existing brush system?

Note: while particle system for eg: has 'simple' brush types like this, grease-pencil sculpt brushes are more advanced and duplicate more of what we have for regular brushes used elsewhere.

  • Grease pencil weight brush seems to have no way to paint a weight value (only add weight).
As with mesh weight paint we should be able to paint a weight.
  • In edit-mode, vertex selection exists but is hidden by default (0.0 opacity).
Shouldn't they be visible?

Lower Priority

  • Internally grease pencil sculp is called:

    • grease pencil edit (GP_BrushEdit_Settings, GP_EditBrush_Data, GP_BRUSHEDIT_FLAG_APPLY_UV)
This is highly confusing since we have grease pencil edit-mode, can't we rename these `GP_Sculpt*`. ?
  • grease pencil paint (GPENCIL_OT_brush_paint)
Paint is easily confused with draw, seems this is for sculpt/weight painting.
*Note: this tasks can be split up once we get feedback on issues, for now this is to discuss changes to make.* ---- - Brush pixels are not pixels, ``` shouldn't we use a meaningful value? (pixels or blender units). ``` - Grease pencil brushes have material pointers which are globally overwritten. ``` When you set a material, all brushes are looped over and have their material values clobbered. ``` ``` Why have a material attached to the brush at all? This could be a scene level setting (or at least not stored per-brush). ``` ``` See: `BKE_brush_update_material` called by rna `rna_Brush_material_update` when setting any material. ``` - Grease pencil sculpt uses it's own brush system, ``` is there a good reason for this? ``` ``` Since these brushes are fairly advanced (pressure & curve mapping options) wouldn't it be better to use the existing brush system? ``` *Note: while particle system for eg: has 'simple' brush types like this, grease-pencil sculpt brushes are more advanced and duplicate more of what we have for regular brushes used elsewhere.* - Grease pencil weight brush seems to have no way to paint a weight value (only add weight). ``` As with mesh weight paint we should be able to paint a weight. ``` - In edit-mode, vertex selection exists but is hidden by default (0.0 opacity). ``` Shouldn't they be visible? ``` ---- ### Lower Priority - Internally grease pencil sculp is called: - grease pencil edit (`GP_BrushEdit_Settings`, `GP_EditBrush_Data`, `GP_BRUSHEDIT_FLAG_APPLY_UV`) ``` This is highly confusing since we have grease pencil edit-mode, can't we rename these `GP_Sculpt*`. ? ``` - grease pencil paint (`GPENCIL_OT_brush_paint`) ``` Paint is easily confused with draw, seems this is for sculpt/weight painting.
Campbell Barton self-assigned this 2018-11-13 22:22:03 +01:00
Author
Owner

Added subscribers: @ideasman42, @dfelinto, @brecht

Added subscribers: @ideasman42, @dfelinto, @brecht
Campbell Barton removed their assignment 2018-11-13 23:19:21 +01:00
Antonio Vazquez was assigned by Campbell Barton 2018-11-13 23:19:21 +01:00

Brush pixels are not pixels, shouldn't we use a meaningful value? (pixels or blender units).

During the development, we tested the use of a brush cursor with the size of the brush and this had two problems:

a) The cursor was too intrusive when drawing. After a lot of test, a small point was the best solution.
b) The size of the cursor is not a real representation of the size of the final stroke (it's the same if you get a real pixel size not implemented now)... the problem is teh stroke is projected and maybe the distance to the plane makes the stroke thinner.

Why have a material attached to the brush at all?

When you select a material, all brushes are set to this material except materials pinned. The reason to do this is that a type of "stroke" is the combination of material and brush, so to get some artistics effects you need define a combination of both. If we link the material, when you append a brush to new scene, you get the material too.

Grease pencil weight brush seems to have no way to paint a weight value (only add weight).

Not sure what you mean... add new strokes?

In edit-mode, vertex selection exists but is hidden by default (0.0 opacity).

This an error of the default scene. The default value must be 1.0

Grease pencil sculpt uses it's own brush system, is there a good reason for this?

Yes, the reason is this is legacy code and we haven't time/resources to redo all this system. This is a future ToDo.

This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ?

Yes, some is legacy code and some new, so we can harmonize the names.

grease pencil paint (GPENCIL_OT_brush_paint)

Paint is easily confused with draw, seems this is for sculpt/weight painting.

Again, legacy code, we could rename it to something like GPENCIL_OT_sculpt_paint

> Brush pixels are not pixels, shouldn't we use a meaningful value? (pixels or blender units). During the development, we tested the use of a brush cursor with the size of the brush and this had two problems: a) The cursor was too intrusive when drawing. After a lot of test, a small point was the best solution. b) The size of the cursor is not a real representation of the size of the final stroke (it's the same if you get a real pixel size not implemented now)... the problem is teh stroke is projected and maybe the distance to the plane makes the stroke thinner. > Why have a material attached to the brush at all? When you select a material, all brushes are set to this material except materials pinned. The reason to do this is that a type of "stroke" is the combination of material and brush, so to get some artistics effects you need define a combination of both. If we link the material, when you append a brush to new scene, you get the material too. > Grease pencil weight brush seems to have no way to paint a weight value (only add weight). Not sure what you mean... add new strokes? > In edit-mode, vertex selection exists but is hidden by default (0.0 opacity). This an error of the default scene. The default value must be 1.0 > Grease pencil sculpt uses it's own brush system, is there a good reason for this? Yes, the reason is this is legacy code and we haven't time/resources to redo all this system. This is a future ToDo. > This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ? Yes, some is legacy code and some new, so we can harmonize the names. > grease pencil paint (GPENCIL_OT_brush_paint) > > Paint is easily confused with draw, seems this is for sculpt/weight painting. > Again, legacy code, we could rename it to something like GPENCIL_OT_sculpt_paint

Added subscribers: @pepe-school-land, @mendio

Added subscribers: @pepe-school-land, @mendio
@pepe-school-land @mendio Thoughts?

Your answers seem good to me @antoniov

Among all the issues, IMO the most important is to convert the actual Gpencil sculpt operators to real Blender brushes as soon as we can. I totally agree with that, is the way to go for better consistency.

Your answers seem good to me @antoniov Among all the issues, IMO the most important is to convert the actual Gpencil sculpt operators to real Blender brushes as soon as we can. I totally agree with that, is the way to go for better consistency.
Author
Owner

@antoniov - is there anything that makes grease pencil sculpt using regular brushes complicated?

In #57818#553623, @antoniov wrote:

Brush pixels are not pixels, shouldn't we use a meaningful value? (pixels or blender units).

During the development, we tested the use of a brush cursor with the size of the brush and this had two problems:

a) The cursor was too intrusive when drawing. After a lot of test, a small point was the best solution.
b) The size of the cursor is not a real representation of the size of the final stroke (it's the same if you get a real pixel size not implemented now)... the problem is teh stroke is projected and maybe the distance to the plane makes the stroke thinner.

In this case why not use an absolute size for brushes?

Why have a material attached to the brush at all?

When you select a material, all brushes are set to this material except materials pinned. The reason to do this is that a type of "stroke" is the combination of material and brush, so to get some artistics effects you need define a combination of both. If we link the material, when you append a brush to new scene, you get the material too.

Grease pencil weight brush seems to have no way to paint a weight value (only add weight).

Not sure what you mean... add new strokes?

If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently.

In edit-mode, vertex selection exists but is hidden by default (0.0 opacity).

This an error of the default scene. The default value must be 1.0

In that case it's a simple fix.

Grease pencil sculpt uses it's own brush system, is there a good reason for this?

Yes, the reason is this is legacy code and we haven't time/resources to redo all this system. This is a future ToDo.

Is this such a big task? Or is there some feature that makes this more difficult then using regular brushes for gpencil-paint for eg?

The hassles we get from having a separate system also give some overhead.

This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ?

Yes, some is legacy code and some new, so we can harmonize the names.

grease pencil paint (GPENCIL_OT_brush_paint)

Paint is easily confused with draw, seems this is for sculpt/weight painting.

Again, legacy code, we could rename it to something like GPENCIL_OT_sculpt_paint

Could we try do this renaming before 2.8x release?
Otherwise people will end up with keymaps using the confusing names.

@antoniov - is there anything that makes grease pencil sculpt using regular brushes complicated? > In #57818#553623, @antoniov wrote: >> Brush pixels are not pixels, shouldn't we use a meaningful value? (pixels or blender units). > > During the development, we tested the use of a brush cursor with the size of the brush and this had two problems: > > a) The cursor was too intrusive when drawing. After a lot of test, a small point was the best solution. > b) The size of the cursor is not a real representation of the size of the final stroke (it's the same if you get a real pixel size not implemented now)... the problem is teh stroke is projected and maybe the distance to the plane makes the stroke thinner. > In this case why not use an absolute size for brushes? >> Why have a material attached to the brush at all? > > When you select a material, all brushes are set to this material except materials pinned. The reason to do this is that a type of "stroke" is the combination of material and brush, so to get some artistics effects you need define a combination of both. If we link the material, when you append a brush to new scene, you get the material too. > >> Grease pencil weight brush seems to have no way to paint a weight value (only add weight). > > Not sure what you mean... add new strokes? > If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently. >> In edit-mode, vertex selection exists but is hidden by default (0.0 opacity). > > This an error of the default scene. The default value must be 1.0 In that case it's a simple fix. >> Grease pencil sculpt uses it's own brush system, is there a good reason for this? > > Yes, the reason is this is legacy code and we haven't time/resources to redo all this system. This is a future ToDo. > Is this such a big task? Or is there some feature that makes this more difficult then using regular brushes for gpencil-paint for eg? The hassles we get from having a separate system also give some overhead. >> This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ? > > Yes, some is legacy code and some new, so we can harmonize the names. > > > >> grease pencil paint (GPENCIL_OT_brush_paint) >> >> Paint is easily confused with draw, seems this is for sculpt/weight painting. >> > > Again, legacy code, we could rename it to something like GPENCIL_OT_sculpt_paint Could we try do this renaming before 2.8x release? Otherwise people will end up with keymaps using the confusing names.

If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently.

Done in ec908beab3

> If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently. Done in ec908beab321

This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ?

Done in 64920a8feb

could rename it to something like GPENCIL_OT_sculpt_paint

Done in 991bb00762

> This is highly confusing since we have grease pencil edit-mode, can't we rename these GP_Sculpt*. ? Done in 64920a8febde >could rename it to something like GPENCIL_OT_sculpt_paint Done in 991bb0076219

Added subscriber: @mathers

Added subscriber: @mathers

I agree that the many types of brushes is confusing, I think we should ideally get down to three types of brushes :

  • Raster brushes : texture paint, image paint, weight paint (not sure for this one)
  • Vector brushes : grease pencil
  • Sculpt brushes : sculpt mode, but also gp sculpt

I feel that Blender is missing a rich collection of brushes, especially since the move to 2D animation : we're competing with software that has hundreds of downloadable brushes both for raster and vector painting. With many redundant brush systems, it is going to be hard for users to create and share their own collections of brushes...

I agree that the many types of brushes is confusing, I think we should ideally get down to three types of brushes : - Raster brushes : texture paint, image paint, weight paint (not sure for this one) - Vector brushes : grease pencil - Sculpt brushes : sculpt mode, but also gp sculpt I feel that Blender is missing a rich collection of brushes, especially since the move to 2D animation : we're competing with software that has hundreds of downloadable brushes both for raster and vector painting. With many redundant brush systems, it is going to be hard for users to create and share their own collections of brushes...

Added subscriber: @MichaelHermann

Added subscriber: @MichaelHermann

In #57818#556355, @antoniov wrote:

If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently.

Done in ec908beab3

I have an addition to this. (Please let me know if I should open a separate bug report for it.)
I've noticed that Weight Painting on Grease Pencil also respects if "Selection Mask" in Sculpt Mode is turned on. This can be quite confusing because the option to turn it off is not available in Weight Painting and the selection is also not visible.

> In #57818#556355, @antoniov wrote: >> If you want to paint a weight (0.5 for eg) onto an existing stroke, as far as I can see this isn't possible currently. > > Done in ec908beab321 I have an addition to this. (Please let me know if I should open a separate bug report for it.) I've noticed that Weight Painting on Grease Pencil also respects if "Selection Mask" in Sculpt Mode is turned on. This can be quite confusing because the option to turn it off is not available in Weight Painting and the selection is also not visible.
Antonio Vazquez removed their assignment 2020-08-18 16:35:37 +02:00

Added subscriber: @antoniov

Added subscriber: @antoniov
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:59 +01:00
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
5 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#57818
No description provided.