drmcnulty / dynamic_unpin_cloth

Addon for Blender that helps animators create unique effects combining Cloth Physics and Dynamic Paint
GNU General Public License v3.0
5 stars 0 forks source link

Dynamic Unpin Cloth

Addon for Blender that helps animators create unique effects combining Cloth Physics and Dynamic Paint.

What started as a tedious and manual physics/modifier stack setup evolved into a reusable addon for Blender-- my first! I wanted a way to destroy meshes without creating a separate set of meshes for the destruction event (e.g. cell fracture + rigid body), and without carefully re-applying Cloth + Vertex Weight Mix modifiers. In the cases of simple, far away, out of focus, or even for close up large-scale cloth destruction, Dynamically painting the destruction onto the object can save you time when exact control of the deformation is unnecessary.

Want to motivate me to make more code like this?

Buy Me A Coffee

https://user-images.githubusercontent.com/33881833/211217315-ffa9cdfb-8a16-4195-821b-2d3f05363d79.mp4

Installation:

  1. Download dynamic_unpin_cloth.py from the latest release : https://github.com/drmcnulty/dynamic_unpin_cloth/releases/latest/download/dynamic_unpin_cloth.py

  2. Open Blender Preferences (Edit > Preferences...) image

  3. Select the "Add-ons" section. image

  4. Click "Install..." image

  5. Browse to the file you downloaded and click on "Install Add-on"

  6. Ensure that "Enabled Add-ons Only" is not checked, and that "Community" Add-ons are visible image

  7. Search for "Dynamic Unpin Cloth" Check the box next to "Object: Dynamic Unpin Cloth" image

  8. If you want Blender to keep this Add-on enabled next time you restart, click "Save Preferences" at the bottom. image

Basic Usage:

There are 3 steps to adding Dynamic Unpin Cloth behaviour to a scene:

  1. Apply DUC to the affected object
  2. make a second object into a brush
  3. make the two objects interact.

Apply Dynamic Unpin Cloth to a Mesh Object

Select the object(s) you want to turn into dynamically unpinnable cloth. In the Object menu, Click "Dynamic Unpin Cloth." image

Create a Dynamic Paint Brush

Select a different object and add Physics->Dynamic Paint->Brush to it. image

Animate

Animate the scene so that the Dynamic Paint Brush makes contact with the DUC object. duc_basic_usage

Tutorials: (Coming Soon!)

Particle System

Animated Meshes

Melting effect

Shredding effect

Tweaking the modifiers

Demonstrations:

Applying Dynamic Unpin Cloth to a Mesh object with default cloth behaviour:

https://user-images.githubusercontent.com/33881833/211219541-5bd37e79-7720-4c78-8f0e-7ace2d88f29a.mp4

Applying Dynamic Unpin Cloth to a Mesh object that has pre-made edge-split knife-cuts across its topology:

https://user-images.githubusercontent.com/33881833/211219560-3bab8d36-1e4d-4718-b9e1-4f71435d4e3f.mp4

Effect realized by checking the "Shatter" option in the Dynamic Unpin Cloth operation menu.

https://user-images.githubusercontent.com/33881833/211219591-1ed974c5-c0f3-490d-a358-6ef29a389738.mp4