Grease Pencil problem (especially soft pencil) #94252

Open
opened 2021-12-19 15:56:21 +01:00 by Marcin · 12 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.09

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: (newest version of Blender that worked as expected)

Short description of error
Since couple version of Blender I cannot use a soft pencil (mainly) brush in Grease Pencil 2D animation mode. The issue depends on how much You zoom. When You zoom in and use same size it's not visible. When You zoom out and draw with same size dots are visible.
It's behavior is very strange now and produces bad results (visible dotted lines or other which are visible on attached file. Some of these issues occur when the brush is small (line type set as dots). This is much more more visible when stroke stabilization is on. The bug was not there about 2 years ago and I was able to use the soft pencil without such problems. When line type is set to line the pencil stroke has strange contour around and when self overlap is off it produces artifacts on edges.
pencil.jpg

Exact steps for others to reproduce the error
Just choose a soft pencil and make it small. Check it with stroke stabilization as well. Then change the line type to line with self overlap on and off.

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.09 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: (newest version of Blender that worked as expected) **Short description of error** Since couple version of Blender I cannot use a soft pencil (mainly) brush in Grease Pencil 2D animation mode. The issue depends on how much You zoom. When You zoom in and use same size it's not visible. When You zoom out and draw with same size dots are visible. It's behavior is very strange now and produces bad results (visible dotted lines or other which are visible on attached file. Some of these issues occur when the brush is small (line type set as dots). This is much more more visible when stroke stabilization is on. The bug was not there about 2 years ago and I was able to use the soft pencil without such problems. When line type is set to line the pencil stroke has strange contour around and when self overlap is off it produces artifacts on edges. ![pencil.jpg](https://archive.blender.org/developer/F12763508/pencil.jpg) **Exact steps for others to reproduce the error** Just choose a soft pencil and make it small. Check it with stroke stabilization as well. Then change the line type to line with self overlap on and off.
Author

Added subscriber: @Wizard1

Added subscriber: @Wizard1

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Do you mean that with same brush you get very different results based on zoom level?

Do you mean that with same brush you get very different results based on zoom level?
Author

Yes. That is one of problems. I think the important one. When I use soft pencil (line set as „dots”) the dots resolution (gap between them) depends on zoom level and brush size. So with the same brush size the line has huge gaps when zoom out when painting and almost no gaps (it looks good, like real pencil) when zoomed in when painting. In addition gaps are much bigger when stabilization is being used. So space beetwen dots is not regular in mamy cases.

Take a soft pencil. Set small size. Draw a line when zoomed out. Zoom in and draw a second line. Results will be very different.

Yes. That is one of problems. I think the important one. When I use soft pencil (line set as „dots”) the dots resolution (gap between them) depends on zoom level and brush size. So with the same brush size the line has huge gaps when zoom out when painting and almost no gaps (it looks good, like real pencil) when zoomed in when painting. In addition gaps are much bigger when stabilization is being used. So space beetwen dots is not regular in mamy cases. Take a soft pencil. Set small size. Draw a line when zoomed out. Zoom in and draw a second line. Results will be very different.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Added subscriber: @antoniov

Added subscriber: @antoniov

Actually, the dots are not created at constant distance, but at "events" distance.

What you get is a known issue and is related to the way Windows handles pen / mouse events (Linux does not have this problem or it is very small). We are looking for a way to get enough events when you move the mouse, because now Windows does not send all the events and it is impossible to create a constant distance between points.

Another way to solve it would be to interpolate the points that we never receive. We have used some of these techniques but they have a limitation ... we cannot abuse them or the artist's "gesture" is missing. Actually the only solution is to move your pen / mouse slower and try to use the fastest PC available.

Actually, the dots are not created at constant distance, but at "events" distance. What you get is a known issue and is related to the way Windows handles pen / mouse events (Linux does not have this problem or it is very small). We are looking for a way to get enough events when you move the mouse, because now Windows does not send all the events and it is impossible to create a constant distance between points. Another way to solve it would be to interpolate the points that we never receive. We have used some of these techniques but they have a limitation ... we cannot abuse them or the artist's "gesture" is missing. Actually the only solution is to move your pen / mouse slower and try to use the fastest PC available.
Author

As You have said about artists…moving pen in a slower way is not what we are looking for.

As You have said about artists…moving pen in a slower way is not what we are looking for.

@Wizard1 Agree 100%, this is why we are looking for a solution.

@Wizard1 Agree 100%, this is why we are looking for a solution.

@ShenCiao-2 We already have the resampling code to keep constant distance, but to do that while you draw is not easy...always is a "post" draw process. We have some ideas to use a Bezier conversion to get same shape without using too many points.

@ShenCiao-2 We already have the resampling code to keep constant distance, but to do that while you draw is not easy...always is a "post" draw process. We have some ideas to use a Bezier conversion to get same shape without using too many points.
Author

It is good to know the team is aware of that. Thank You for answers. I hope it will be solved someday. I am just wondering why all painting software (PS, Affinity) has no isseus with drawing like this if that is Windows problem. But I am not a developer so I guess the problem is not an easy one.

It is good to know the team is aware of that. Thank You for answers. I hope it will be solved someday. I am just wondering why all painting software (PS, Affinity) has no isseus with drawing like this if that is Windows problem. But I am not a developer so I guess the problem is not an easy one.
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:20 +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
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#94252
No description provided.