Grease Pencil: "Normalize All" function does not work, nor behave as described #89468

Closed
opened 2021-06-27 04:01:35 +02:00 by Chris · 9 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11

Blender Version
Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: 1b8d33b18c
Worked: (newest version of Blender that worked as expected)

Short description of error
NOTE: It should be mentioned that grease pencil weight painting does not have any reliable ways to normalize weights between vertex groups. There is no Auto-Normalize functionality for grease pencil, and the "Normalize" and "Normalize All" functions don't work as described.

While smoothly painting weights between multiple bones of a grease pencil, if Normalize All is used:

  • At best case, nothing changes
  • At worst case, all painted vertex weights are remapped to 1.0 for all vertex groups, meaning the sum of some vertices with overlapping paint influence is greater than 1
  • In either case, neither will behave as expected, where the sum of all vertex influence values should equal 1.0

Normalize All Description: https://docs.blender.org/manual/en/latest/grease_pencil/modes/weight_paint/weights_menu.html#normalize-all

Weight painting with root bone selected
BlenderSuzanne_rootpaint.png

Weight painting with jaw bone selected
BlenderSuzanne_jawpaint.png

Weight painted with jaw bone selected (after root bone selected and "Normalize All" used)
BlenderSuzanne_afternormalizeall.png

Exact steps for others to reproduce the error

  • Create new project - 2D Animation
  • Add Grease Pencil Object - Monkey
  • Add Armature with additional bone for Monkey's jaw. Make sure jaw bone is parented to root armature bone (keep offset)
  • Set GreasePencil object's parent to armature
  • Select Armature and then Shift Select Suzanne GreasePencil, change modes to Weight Paint
  • With root bone active, paint 1.0 weight on all GreasePencil vertices
  • Select jaw bone (Ctrl + Click) and paint 1.0 weight on all jaw vertices. Include smoothing falloff for gradual curve
  • Observe that moving/rotating jaw will at best clamp weight influence range from 0-0.5 on assigned vertices
  • While still in weight paint mode, select jaw bone and perform the operation: Weights > Normalize All
  • Observe nothing has changed
  • With the root bone selected in weight paint mode, perform the operation: Weights > Normalize All
  • Observe the root bone still has 1.0 weight on all vertices

Select the jaw bone and observe that all vertices that were painted between (0.0 - 1.0) are now all assigned to full 1.0 weighting.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11 **Blender Version** Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: `1b8d33b18c` Worked: (newest version of Blender that worked as expected) **Short description of error** NOTE: It should be mentioned that grease pencil weight painting does not have any reliable ways to normalize weights between vertex groups. There is no Auto-Normalize functionality for grease pencil, and the "Normalize" and "Normalize All" functions don't work as described. While smoothly painting weights between multiple bones of a grease pencil, if Normalize All is used: - At best case, nothing changes - At worst case, all painted vertex weights are remapped to 1.0 for all vertex groups, meaning the sum of some vertices with overlapping paint influence is greater than 1 - In either case, neither will behave as expected, where the sum of all vertex influence values should equal 1.0 Normalize All Description: https://docs.blender.org/manual/en/latest/grease_pencil/modes/weight_paint/weights_menu.html#normalize-all Weight painting with root bone selected ![BlenderSuzanne_rootpaint.png](https://archive.blender.org/developer/F10203395/BlenderSuzanne_rootpaint.png) Weight painting with jaw bone selected ![BlenderSuzanne_jawpaint.png](https://archive.blender.org/developer/F10203392/BlenderSuzanne_jawpaint.png) Weight painted with jaw bone selected (after root bone selected and "Normalize All" used) ![BlenderSuzanne_afternormalizeall.png](https://archive.blender.org/developer/F10203397/BlenderSuzanne_afternormalizeall.png) **Exact steps for others to reproduce the error** - Create new project - 2D Animation - Add Grease Pencil Object - Monkey - Add Armature with additional bone for Monkey's jaw. Make sure jaw bone is parented to root armature bone (keep offset) - Set GreasePencil object's parent to armature - Select Armature and then Shift Select Suzanne GreasePencil, change modes to Weight Paint - With root bone active, paint 1.0 weight on all GreasePencil vertices - Select jaw bone (Ctrl + Click) and paint 1.0 weight on all jaw vertices. Include smoothing falloff for gradual curve - Observe that moving/rotating jaw will at best clamp weight influence range from 0-0.5 on assigned vertices - While still in weight paint mode, select jaw bone and perform the operation: Weights > Normalize All - Observe nothing has changed - With the root bone selected in weight paint mode, perform the operation: Weights > Normalize All - Observe the root bone still has 1.0 weight on all vertices # Select the jaw bone and observe that all vertices that were painted between (0.0 - 1.0) are now all assigned to full 1.0 weighting.
Author

Added subscriber: @Blasphemy

Added subscriber: @Blasphemy
Antonio Vazquez self-assigned this 2021-06-27 15:30:28 +02:00

I have done a test with a simple file and I get this using 2 vertex groups:

****
1.0             0.8661803603172302 === 1.8661803603172302
0.4453125       0.37253209948539734 === 0.8178445994853973
1.0             0.7534894347190857 === 1.7534894347190857
0.6875          0.06570197641849518 === 0.7532019764184952

Weights After Normalize All with `Lock Active` disabled
****
0.5358538627624512 0.46414610743522644 === 0.9999999701976776
0.5444952249526978 0.45550474524497986 === 0.9999999701976776
0.5702913999557495 0.4297085404396057  === 0.9999999403953552
0.9127697944641113 0.08723022788763046 === 1.0000000223517418```

Be sure to uncheck `Lock Active`

![image.png](https://archive.blender.org/developer/F10203894/image.png)

This follows what manual describes: 

```For each point, this tool makes sure that the sum of the weights across all vertex groups is equal to 1. It normalizes all of the vertex groups, except for locked groups, which keep their weight values untouched.```
I have done a test with a simple file and I get this using 2 vertex groups: ```Weights Before (Vertex Grp 1, Vertx Grp 2 = Total) **** 1.0 0.8661803603172302 === 1.8661803603172302 0.4453125 0.37253209948539734 === 0.8178445994853973 1.0 0.7534894347190857 === 1.7534894347190857 0.6875 0.06570197641849518 === 0.7532019764184952 Weights After Normalize All with `Lock Active` disabled **** 0.5358538627624512 0.46414610743522644 === 0.9999999701976776 0.5444952249526978 0.45550474524497986 === 0.9999999701976776 0.5702913999557495 0.4297085404396057 === 0.9999999403953552 0.9127697944641113 0.08723022788763046 === 1.0000000223517418``` Be sure to uncheck `Lock Active` ![image.png](https://archive.blender.org/developer/F10203894/image.png) This follows what manual describes: ```For each point, this tool makes sure that the sum of the weights across all vertex groups is equal to 1. It normalizes all of the vertex groups, except for locked groups, which keep their weight values untouched.```
Author

Can confirm behavior matches description when 'Lock Active' is unchecked.

I'd suggest changing the default value for 'Lock Active' to false as this appears to be an easy pitfall to fall into, as it overrides inferred behavior of 'normalizing all' towards a more nuanced case.

Can confirm behavior matches description when 'Lock Active' is unchecked. I'd suggest changing the default value for 'Lock Active' to false as this appears to be an easy pitfall to fall into, as it overrides inferred behavior of 'normalizing all' towards a more nuanced case.

Added subscribers: @mendio, @pablovazquez

Added subscribers: @mendio, @pablovazquez

@mendio @pablovazquez What do you think about changing default for Lock Active?

@mendio @pablovazquez What do you think about changing default for `Lock Active`?
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Lock Active is On by default not only for Grease Pencil but Meshes, so a change in the default value should have to be consistent in both.
This task could be closed and another one created with a more general proposal if wanted.

Lock Active is On by default not only for Grease Pencil but Meshes, so a change in the default value should have to be consistent in both. This task could be closed and another one created with a more general proposal if wanted.

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Thanks @mendio! I will close this task and if it's needed, a new task will be created for default value change.

Thanks @mendio! I will close this task and if it's needed, a new task will be created for default value change.
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
4 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#89468
No description provided.