Colisões

In most cases, a piece of cloth does not just hang there in 3D space, it collides with other objects in the environment. To ensure proper simulation, there are several items that have to be set up and working together:

  • O objeto marcado como Tecido deve ser marcado para a participação nas colisões.
  • Opcionalmente (mas recomendável), também é interessante marcar o tecido para colisões internas (consigo).
  • Outros objetos devem estar visíveis para o objeto marcado como tecido através do compartilhamento de camadas.
  • Os outros objetos devem ser do tipo malha.
  • The other objects may move or be themselves deformed by other objects (like an armature or shape key).
  • The other mesh objects must be told to deflect the cloth object.
  • The blend-file must be saved in a directory so that simulation results can be saved.
  • You then Bake the simulation. The simulator computes the shape of the cloth for a frame range.
  • You can then edit the simulation results, or make adjustments to the cloth mesh, at specific frames.
  • You can make adjustments to the environment or deforming objects, and then re-run the cloth simulation from the current frame forward.

Configurações de colisão

Referência

Panel:Physics ‣ Cloth ‣ Collision
../../../_images/physics_cloth_settings_collisions_panel.png

Cloth Collisions panel.

Now you must tell the Cloth object that you want it to participate in collisions. For the cloth object, locate the Cloth Collision panel.

Qualidade
A general setting for how fine and good a simulation you wish. Higher numbers take more time but ensure less tears and penetrations through the cloth.

Object Collisions

If the cloth object needs to be deflected by some other object. To deflect a cloth, the object must be enabled as an object that collides with the cloth object. To enable objects to collide with cloth objects enable collision physics for the collider object (not on the cloth object).

Nota

If your colliding object is not a mesh object, such as a NURBS surface, or a text object, you must convert it to a mesh object using Converter para.

Distância
The distance another object must get to the cloth for the simulation to repel the cloth out of the way. Smaller values might give errors but gives some speed-up while larger will give unrealistic results if too large and can be slow. It is best to find a good in between value.
Impulse Clamping
Prevents explosions in tight and complicated collision situations by restricting the amount of movement after a collision.
Collision Collection
Only objects that are a part of this Collection can collide with the cloth. Note that these objects must also have Collision physics enabled.

Self-Collisions

Real cloth cannot penetrate itself, so you normally want the cloth to self-collide. Enable this to tell the cloth object that it should not penetrate itself. This adds to the simulation’s compute time, but provides more realistic results.

Dica

A flag, viewed from a distance does not need this enabled, but a close-up of a cape or blouse on a character should have this enabled.

Fricção
A coefficient for how slippery the cloth is when it collides with itself. For example, silk has a lower coefficient of friction than cotton.
Distância
As cloth at this distance begins to repel away from itself. Smaller values might give errors but gives some speed-up while larger will give unrealistic results if too large and can be slow. It is best to find a good in between value.
Impulse Clamping
Prevents explosions in tight and complicated collision situations by restricting the amount of movement after a collision.
Vertex Group
Only vertices that are a part of this Vertex Group can collide with each other.

Veja também

Example blend-file: Cloth self-collisions.

Troubleshooting

If you encounter some problems with collision detection, there are a few ways to fix them:

  • The fastest solution is to increase the Distance for Object/Self Collisions. This will be the fastest way to fix the clipping; however, it will be less accurate and will not look as good. Using this method tends to make it look like the cloth is resting on air, and gives it a very rounded look.
  • A second method is to increase the Quality (in the Cloth panel). This results in smaller steps for the simulator and therefore to a higher probability that fast-moving collisions get caught. You can also increase the Collisions Quality to perform more iterations to get collisions solved.
  • If none of the methods help, you can easily edit the cached/baked result in Edit Mode afterwards.
  • If the Cloth is torn by the deforming mesh; increase the stiffness settings.