Page MenuHome

Sculpt: Enable Cloth Simulation Target for Pose and Boundary
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Aug 15 2020, 12:31 AM.
Tags
None
Tokens
"Pterodactyl" token, awarded by shader."Like" token, awarded by kivig."Love" token, awarded by ZohaibAli."Y So Serious" token, awarded by lopoIsaac."Love" token, awarded by RodDavis."100" token, awarded by Frozen_Death_Knight.

Details

Summary

This adds a new brush property called "Deformation Target" which
controls how the brush deformations is going to affect the mesh data. By
default is set to Geometry, which makes the brushes displace the
vertices. When set to Cloth Simulation, the deformation of the brush is
applied to the cloth solver constraints, so the simulation is
responsible to apply the final deformation. This allows to add cloth
simulation effects to other sculpt tools with minor modifications to their
code.

This patch enables Cloth Simulation deformation target for Pose and
Boundary brushes, which are tools that are already designed to work in
low poly counts and produce large deformations. This allows creating the
most common cloth effects, like bending and compressing folds, without
relying on collisions.

This depends on D8568 to make the simulation not update constantly,
and a small adjustment to spacing on top of that for when cloth simulation
target is enabled.

Diff Detail

Repository
rB Blender
Branch
sculpt-pose-cloth-deform-target (branched from master)
Build Status
Buildable 9531
Build 9531: arc lint + arc unit

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Aug 15 2020, 12:31 AM
Pablo Dobarro (pablodp606) created this revision.
Sergey Sharybin (sergey) requested changes to this revision.Aug 17 2020, 9:46 AM
Sergey Sharybin (sergey) added inline comments.
source/blender/editors/sculpt_paint/sculpt.c
5695–5696

Remove dead code.

source/blender/editors/sculpt_paint/sculpt_boundary.c
838–840

These lines repeat in several places. Should be possible to wrap into an utility function.

source/blender/editors/sculpt_paint/sculpt_cloth.c
307–308

Which others? What if it's a cloth brush but len_squared is > radius_squared?

710

Do this kind of refactor in a separate commit/patch.
Split functional from non-functional changes.

This revision now requires changes to proceed.Aug 17 2020, 9:46 AM
Pablo Dobarro (pablodp606) marked 4 inline comments as done.
Pablo Dobarro (pablodp606) edited the summary of this revision. (Show Details)
  • Review Update
This revision is now accepted and ready to land.Aug 18 2020, 3:42 PM

I am a simple user, and I would very much like to use this functionality, tell me how you can install it please?