Creating Collisions with Polygon Mesh Objects

 
 
 

When you need to use the exact shape of an object for a collision with the cloth, you can use polygon mesh objects as the collision objects. For example, you will need the actual shape of a body for a shirt colliding with a character's arms, armpits, and upper body. Polygon mesh collision objects allow for an accurate collision, but they take longer to calculate than bounding shapes (see Creating Collisions with Bounding Shape Objects).

The polygon mesh collision objects can be stationary or animated. They can also have animated deformations applied to them, including lattices, shape animation, envelopes, waves — any deform operator. The current shape of the deform-animated collision object is updated at each frame of the simulation. This slows down the simulation, but makes the collision more accurate.

See Tips for Successful Collisions with Polygon Mesh Objects and The Collision Envelope below for information.

To have cloth collide with polygon mesh objects:

  1. Create a Syflex ICE cloth or curve simulation - see Creating Syflex ICE Simulations.

  2. Select the cloth or curve object.

  3. Do either of the following:

    • Choose the Particles Collision Syflex Add Collide Mesh command from the ICE Tree toolbar.

      Then pick one or more polygon mesh objects to use as the collision mesh.

      This updates the Syflex ICE tree by adding the Syflex Collide Mesh node and a Get Data node for each collision object.

    • In the ICE Tree view, drag the Collisions Syflex Collide Mesh compound from the Task > Syflex tab in the preset manager and plug it into a Forces port on the Syflex Cloth or Syflex Curve node.

      Then drag the name of each polygon mesh collision object from an explorer into the ICE tree to create a Get Data node for it.

      Plug each collision object's Value output into a Geometry port on the Syflex Collide Mesh node.
      NoteTo use multiple polygon mesh objects, you can also use groups, as described in the section below.
  4. Set the parameters in the Syflex Collide Mesh property editor.

    For more information on the Envelope parameters, see The Collision Envelope below.

Using a Group of Polygon Mesh Collision Objects

Groups allow you to easily add collision objects to, or delete collision objects from, the group while keeping the same Get Data node plugged into the ICE tree. However, if you change members of the group after plugging in the group's Get Data node, you need to update the simulation.

  1. Select all the polygon mesh objects you want to use for collision objects and press Ctrl+G to create a group.

  2. Follow the process as above so that the Value output from the group's Get Data node is plugged into a Geometry port on the Syflex Collide Mesh node.

The Collision Envelope

The simulation of a cloth is often driven by its collisions with a character's body. Computing these collisions with the whole cloth geometry can be extremely time consuming, so instead a collision envelope is used.

The collision envelope consists of an external envelope that is outside of the collision object, and an internal envelope that is inside the collision object. Whenever a cloth vertex enters the volume defined by these two envelopes, the vertex is repelled to be outside of the volume. You can think of it rather like a "push" operator. By making the envelope bigger, the cloth is pushed further away from the collision object, to a point where there are no more visible intersectionss.

The collision object's envelope is a distance based on the Softimage units that you're using (such as one Softimage unit = 10 cm). The difference between the external and the internal envelope should be as small as possible: the smaller the envelope, the faster the computation.

The inner envelope's value is often the inverse of the outer envelope' positive value, but the inner envelope's value can also be positive. If you're using a character's body as the collision object, start out with an external envelope of 1 cm, and an internal envelope of -1 cm, then fine-tune as you need.

Tips for Successful Collisions with Polygon Mesh Objects

Here are some tips to help you create successful collisions for Syflex cloth and curve simulations:

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License