Page MenuHome

Add time multiplier property to cloth simulation
AbandonedPublic

Authored by Luca Rood (LucaRood) on Jul 24 2016, 9:59 AM.

Details

Summary

This diff is meant to be applied after D2121 and next comes D1903.

This adds a "Time Multiplier" property to the cloth settings, which allows the "real world speed" of the cloth to be changed.

This setting can also be animated, to create a "time warp" effect, as demonstrated here (couldn't figure out how to embed):
https://vimeo.com/lucarood/cloth-animated-time-multiplier

Here is the UI with the added property:

Diff Detail

Repository
rB Blender

Event Timeline

Luca Rood (LucaRood) retitled this revision from to Add time multiplier property to cloth simulation.
Luca Rood (LucaRood) updated this object.
Luca Rood (LucaRood) set the repository for this revision to rB Blender.
Luca Rood (LucaRood) added a project: Physics.
Campbell Barton (campbellbarton) requested changes to this revision.Jul 25 2016, 11:30 PM

Generally seems fine, versioning update is needed though.

source/blender/blenkernel/intern/cloth.c
99

This will need to be set for existing files. See: blo_do_versions_270.

This revision now requires changes to proceed.Jul 25 2016, 11:30 PM
Luca Rood (LucaRood) updated this revision to Diff 7117.EditedJul 26 2016, 8:32 AM
Luca Rood (LucaRood) edited edge metadata.

Added the versioning for the "time_multiplier" property.

This revision is now accepted and ready to land.Jul 29 2016, 4:05 AM
Lukas Tönne (lukastoenne) added inline comments.
source/blender/blenloader/intern/versioning_270.c
1241

ClothModifierData is also used as part of the ParticleSystem struct for handling hair dynamics. I guess you also need to init the multiplier there to avoid breaking hair sims.

https://developer.blender.org/diffusion/B/browse/master/source/blender/makesdna/DNA_particle_types.h$283

This revision now requires changes to proceed.Jul 29 2016, 9:31 AM
Luca Rood (LucaRood) edited edge metadata.
Luca Rood (LucaRood) marked an inline comment as done.

Added versioning of the time_multiplier property in particles.