Blender Git Loki

Git Commits -> Revision 84b94f9

Revision 84b94f9 by Pablo Dobarro (master)
March 9, 2020, 20:16 (GMT)
Sculpt: Edge Automasking

This automasking option protects the open boundary edges of the mesh from the brush deformation. This is needed to sculpt cloths and it works nicely with the cloth brush.
It has a Propagation Steps property that controls the falloff of the mask from the edge.

Limitations:
- The automask is recalculated at the beginning of each stroke, creating a little bit of lag in high poly meshes, but it is not necessary. This can be fixed in the future by caching the edge distances, increasing a little bit the complexity of the code.
- The boundary vertex detection in meshes is not ideal and it fails with triangulated geometry, but it is the same as in the smooth brush. After fixing this, we should refactor the smooth brush to use the API and let the automasking option manually control the affected vertices.
- It does not work in Multires (it needs to be implemented in the API). The smooth brush in Multires is also not making boundary vertices.
- The falloff has a visible line artifact on grid patterns. We can smooth the final automasking factors several iterations, but it will make the initialization much slower. This can also be added in the future if we decided to cache the distances.

Reviewed By: jbakker

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

Commit Details:

Full Hash: 84b94f9e7b8b36ac74980e31b6a2c69bc49b2e0d
Parent Commit: 04e9ba7
Lines Changed: +145, -6

6 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+5, -0) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+8, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+111, -4) (Diff)
/source/blender/makesdna/DNA_brush_defaults.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+4, -2) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+16, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021