Blender Git Commit Log

Git Commits -> Revision 4a373af

Revision 4a373af by Pablo Dobarro (master)
February 28, 2020, 16:02 (GMT)
Sculpt: Cloth brush

This brush has a simple physics solver that helps when sculpting cloth.

- The mass and the damping properties of the simulation are properties of the brush.
- It has two additional radius control to limit the influence and falloff of the simulation.
- Masked vertices are pinned in the simulation, and it applies the sculpt gravity directly in the solver.
- The Cloth Brush has 7 deformation modes with 2 falloff types (radial and plane).

The brush can create the constraints only on the required PBVH nodes, so the simulation is isolated on high poly meshes. As long
as the brush size is not too big it should be possible to keep it real time.

Known issues:
- The way constraints are created is extremely basic and it creates repeated constraints. Maybe there is another way to create fewer constraints while keeping the simulation quality decent. This part can also be multithreaded. (As it is it works ok, but it could be better)

Reviewed By: jbakker

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

Commit Details:

Full Hash: 4a373afa5fb8f9eab92314fac1b140b7803f30fe
Parent Commit: 793135e
Lines Changed: +1144, -35

1 Added Path:

/source/blender/editors/sculpt_paint/sculpt_cloth.c (+679, -0) (View)

13 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+12, -0) (Diff)
/source/blender/blenkernel/BKE_paint.h (+26, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+17, -0) (Diff)
/source/blender/editors/sculpt_paint/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+52, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_stroke.c (+9, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+158, -33) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+88, -0) (Diff)
/source/blender/gpu/GPU_immediate_util.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_immediate_util.c (+5, -0) (Diff)
/source/blender/makesdna/DNA_brush_defaults.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+29, -2) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+63, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021