Page MenuHome

Sculpt: Use plasticity for softbody influence
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Oct 12 2020, 11:34 PM.
Tags
None
Tokens
"Love" token, awarded by shader."Love" token, awarded by lopoIsaac."Love" token, awarded by g.ndre."Love" token, awarded by Anubis."Love" token, awarded by GeorgiaPacific.

Details

Summary

Previously the softbody strength property was controlling the strength
of the constraints that pin all vertices to the original location. This
was causing problems when the forces were trying to deform the vertices
too much, like when using gravity or grab brushes.

Now softbody is implemented with plasticity, which creates constraints to
a separate coordinates array. These coordinates are deformed with the
simulation, and the plasticity parameter controls how much the
simulation moves the coordinates (plasticity 0), or the coordinates move
the simulation back to its previous position (plasticity 1).

This creates much better and predictable results and adding softbody
plasticity to the brushes can increase its control and the stability of
the simulation.

Previous version based on static coordinates, the mesh is almost impossible
to deform and it does not preserve the shape:

Diff Detail

Repository
rB Blender
Branch
cloth-softbody-plasticity (branched from master)
Build Status
Buildable 10694
Build 10694: arc lint + arc unit

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Oct 12 2020, 11:34 PM
Pablo Dobarro (pablodp606) created this revision.

This does look fine to me.

From code side seems fine.
From presentation level -- would be more insightful to have side-by-side comparison of old/new behavior.

This revision is now accepted and ready to land.Oct 13 2020, 4:40 PM