Blender Git Commit Log

Git Commits -> Revision 29b65f5

Revision 29b65f5 by Antonio Vazquez (master)
July 2, 2021, 10:04 (GMT)
GPencil: New modifier to generate weights dynamically

his new modifier allows to generate weights base on:

* Angle of the stroke relative to object or world orientation. For example, if the value is 90, the maximum weights will be for vertical lines and minimum for horizontal lines.

* Distance to Target object. The distance calculated is normalized to get valid weights between 0 and 1.0.

The weights are created in an existing vertex group and the data can be replaced or mixed with the existing value to combine different weight effects. The minimum parameter, allows to define the minimum weight generated. This is useful to avoid very low weights.

The generated weights can be used in any modifier. For example, the angle weight value can be used to mimic FreeStyle Caligraphy modifier using the weight with the thickness modifier.

Also some modifier has been changed to inlude a new option to use the weights as factor of the effect.
As result of this change, the fading option has been removed from Thickness and Opacity modifiers because this can be done using the new modifier, it's not logic to repeat the same.

Reviewed By: mendio, filedescriptor

Differential Revision: https://developer.blender.org/D11604

Commit Details:

Full Hash: 29b65f5345128ee035599aa7233315a74fe6afe6
Parent Commit: 9f5c0ff
Lines Changed: +710, -244

1 Added Path:

/source/blender/gpencil_modifiers/intern/MOD_gpencilweight.c (+335, -0) (View)

13 Modified Paths:

/source/blender/editors/space_outliner/outliner_draw.c (+3, -0) (Diff)
/source/blender/gpencil_modifiers/CMakeLists.txt (+1, -0) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c (+37, -74) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c (+20, -64) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c (+36, -7) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+0, -14) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.h (+0, -2) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c (+4, -3) (Diff)
/source/blender/gpencil_modifiers/MOD_gpencil_modifiertypes.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_defaults.h (+14, -4) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_types.h (+61, -16) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+196, -60) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021