Page MenuHome

Cloth: componentized forces
ClosedPublic

Authored by Luca Rood (LucaRood) on Aug 28 2018, 6:40 PM.

Details

Summary

This separates cloth stiffness and damping forces into tension, compression, and shearing components, allowing more control over the cloth behavior.

This also adds a bending model selector (although the new bending model itself is not implemented in this patch). This is because some of the features implemented here only make sense within the new bending model, while the old model is kept for compatibility.

This patch makes only non-breaking changes, and thus maintains full compatibility with existing simulations.

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Aug 28 2018, 6:51 PM

Seems generally fine, minor comments.

source/blender/makesdna/DNA_cloth_types.h
61

Mark deprecated variables with DNA_DEPRECATED, so they don't accidentally get used.

source/blender/physics/intern/implicit_blender.c
1616

Code style: comments start with capital letter and end with a dot.

This revision now requires changes to proceed.Aug 28 2018, 6:51 PM
Luca Rood (LucaRood) updated this revision to Diff 11717.EditedAug 29 2018, 12:46 AM

Small update to fix issues raised by @Brecht Van Lommel (brecht). Thanks for the quick review!

Luca Rood (LucaRood) marked 2 inline comments as done.Aug 29 2018, 12:46 AM
This revision is now accepted and ready to land.Aug 30 2018, 1:31 PM
This revision was automatically updated to reflect the committed changes.