This addon allows to deform 3D meshes using a stack of customizable deformers at run-time
Use the default deformers:
or easily create your owns by extending the base class and overriding just a couple of methods (a tutorial will be available).
-
Download the repository or download the addon from the AssetLib in Godot (link).
-
Import the addons folder into your project.
-
Activate
DeformableMesh
under Project > Project Settings > Plugins.
- Add a deformer node to the scene.
- Add a
DeformableMeshInstance3D
node to the scene.
- Set the mesh resource you want to deform in the Original Mesh property.
- Link the deformer node you created before to the list of Deformers that will affect this mesh in the property panel.
- Tweak the deformer properties to achieve the desired result.
- You can download here an example project that shows the basic functionalities of
DeformableMesh
. - Unzip the file
- Import the project with Godot Engine 4+
- Open the scene
dm_example_scene_v030.tscn
(if it's not already opened)
You can now try tweaking the deformer parameters. Some effects are also controlled by the positions and the rotations of the deformer nodes.
DeformableMesh
can apply multiple deformers like in a stack, so the order is important to achieve the correct effect.
You need also to specify the correct deformation axis (for some effects like bending, but it's not important with spherical deformers).
v0.30
- add: standard deformer ( bend, twist and taper )
- removed: bend deformer ( a better version is included inside the standard deformer )
- add: bend deformers
- add: base class to easily create custom deformers
- code refactoring and minor improvements
- first release