Compressive Deform
The Starmesh Op. Compressive Deform component creates a blendshape that emulates the effect of a flat surface being compressed against that object.
This is different from rescaling. The surface of a non-flat object will be progressively flattened as it's being compressed.
- This blendshape has multiple frames, so it emulates a non-linear interpolation.
- It will move vertices progressively as the blendshape progresses.
- It will not flatten vertices far from the compression surface, unless the compression surface becomes closer.
- It will expand the object laterally to the force.
- The lateral expansion is limited by the proximity to the compression surface.
If you use a third-party tool called DexProtect, then you must update DexProtect to version 2.2.3 or higher.
Compressive Deform will not work properly with a lower version of DexProtect.
Since this blendshape has multiple frames, this cannot be used in applications if the format is VRM or GLB (i.e. Resonite).
This can still be used in
How to use
Create the operator and selectors
- Add a Starmesh Op. Compressive Deform component on a new GameObject in your avatar.
- In the selectors of this component, add a Starmesh Select Meshes, or choose one that you already have.
- Configure the Select Meshes selector so that it affects the relevant meshes.
- In the selectors of this component, add other selectors, for instance, a Starmesh Select Bones or a Starmesh Select Line Radius.
- If you choose to use a Select Point Radius or a Starmesh Select Line Radius, it may need to be larger than usual (or, modify the curve), so that the Compressive Deform has full influence over the affected vertices.
You can add selectors as children of this GameObject.