The Merged Mesh Deform Cloth is an improved version of the old standard cloth, where you have to use the cloth entity. It can be attached to any .cgf within your max file. You can use it on brushes as well as on vegetation objects. It gets affected by the global wind settings and breeze settings in the editor.
It is also optimized for PS3 and doesn't consume as much performance as the cloth entity. You can currently use up to 10 nodes to make it more SPU friendly. The SPU will calculate the nodes simultaneously in multiple threads. Splitting up your cloth nodes as much as possible will be more effective. The cloth nodes get merged into larger single objects in real-time. Every material ID get it's own merged object.
Currently you can't move the cloth along a Trackview or link the cloth to other objects in the editor. It can't change its position in real-time in-game. In this case, you have to use the cloth entity.
Your cloth nodes need a main object where they're linked to. Currently it has to be a mesh and dummies/helpers are not supported yet. The main object is defining the name for your exported object. The cloth nodes have to be named "bendable", "bendable00", "bendable01", etc. You can fix single vertices in your cloth nodes by coloring them black in the vertex color channel (green channel, if the other channels are used for something else). Grey vertices get affected by the stiffness and white vertices are deformable without any stiffness. You can edit the cloth's behavior by changing the values in the user defined properties of the respective cloth node. You can use different properties, if you have multiple nodes to add more variety.
The main difference to the setup compared to 3ds Max is that each node needs to have _group for each "bendable" node and parented under the "root" with the UDP strings assigned to the root_group node like pictured below:
UDP | Description |
---|---|
mergedmesh_deform | Needed to enable mergedmesh deform cloth physics for this node. |
mergedmesh_deform_stiffness | Defines how "hard" the deformable is, between 0.0 and 1.0. |
mergedmesh_deform_damping | Controls how quickly the deformable will "settle", between 0.0 and infinity. |
mergedmesh_deform_variance | Controls how much randomness is in the wind sampling algorithm, between 0.0 and infinity. |
mergedmesh_deform_air_resistance | Scales the wind influence, multiplied with the levels wind force. |
mergedmesh_deform_air_frequency | Cosines modulated speed of wind per vertex, between 0.0 and infinity. |
mergedmesh_deform_air_modulation | Cosines modulated speed of wind per wind-force, between 0.0 and infinity. |
mergedmesh_deform_max_iter | Amount of simulation iterations, between 1 and 12, 3 is default, the higher the more expensive. |
Example use of parameters:
mergedmesh_deform
mergedmesh_deform_stiffness = 0.9
mergedmesh_deform_damping = 0.1
mergedmesh_deform_variance = 3
mergedmesh_deform_air_resistance = 0.3
mergedmesh_deform_air_frequency = 1.67
mergedmesh_deform_air_modulation = 0.03
mergedmesh_deform_max_iter = 4