Справка Houdini на русском Cloth

How to create a simple cloth skirt and attach it to a character

On this page

All cloth should ideally be modeled on a character in T-Pose. This makes it easier to ensure that the the cloth fabric doesn’t penetrate the character’s geometry initially. Cloth usually takes 10-20 frames to settle, so be sure to allow this much time in the T-pose before starting any major character animations.

NOTE

Keep your cloth geometry reasonably sized. For example, pants should be around 1 unit long. If you modeled pants to be 100 units long, they would behave like pants that are 100 meters high (328 feet). The default units are meters. Before you start, make sure you are working with proper scale. If you prefer working with feet or inches, rather than meters, set your units accordingly in the Preferences > HIP File Options. It is important to do this before creating your cloth simulations.

  1. Create a Circle using the Create tab of the shelf. Make sure the Primitive Type is Polygon, Orientation is ZX plane, Arc Type is Open Arc, and has at least 20 Divisions.

  2. Transform the circle to fit around the characters waist, as close as possible without intersecting any of the character’s actual geometry.

  3. Poly Extrude the circle down to the desired length and scale it out.

  4. On Options tab, add divisions until each primitive looks roughly like a square and turn off the Output Front checkbox.

  5. Edit the points of the skirt so they do not intersect the geometry of the body.

  6. Add a fuse node (this will help the cloth simulation).

  7. Use the Subdivide tool on the Polygon shelf, and increasing depth accordingly. Thinner fabric that wrinkles more should have more resolution and thicker fabric that deforms less can have lower resolution.

  8. Back at Geometry level, select your circle object and click Cloth Object on the Cloth shelf tab.

  9. Go back to the Geometry level, select the character’s body geometry, and turn it in to a collision object by clicking Cloth Body on the Cloth shelf tab.

  10. To attach the skirt to the body, select the skirt and click Attach to Body on the Cloth shelf tab and follow the prompts.

    • Select the skirt and press Enter.

    • Select the points around the waistline of the skirt and press Enter.

      Tip

      You can select one point on the wasitline of the skirt and press the hotkey L to loop around and select all of the points.

    • Select the character’s geometry and press Enter to create a set of constraints.

  11. Press play on the Playbar to view the simulation.

The look of the cloth can be adjusted in the Cloth Object in the AutoDopNetwork by adjusting the parameters in the Model tab of the Cloth Object. The most important control is the Overall Stiffness. Increasing the Overall Stiffness will produce stiffer fabrics, and decreasing it will create softer or silkier fabrics. Given an Overall Stiffness, the behavior can be fine-tuned further by modifying the components of the Relative Stiffness that correspond to stretch, shear, weak bend, and strong bend. The Relative Stiffness values should be between 0 and 1; they act as multipliers for the Overall Stiffness.

For example, the following three dresses are identical. The orange dress has the default settings, the pink dress has slighter lower Overall Stiffness than the other two. The orange and purple dresses have the same Overall Stiffness, but the purple dress has fewer folds, because it uses the Strong Bend instead of Weak Bend.

Overall Stiffness Relative Stiffness Stretch Relative Stiffness Shear Relative Stiffness Weak Bend Relative Stiffness Strong Bend
500 1 0.1 0.001 0
Overall Stiffness Relative Stiffness Stretch Relative Stiffness Shear Relative Stiffness Weak Bend Relative Stiffness Strong Bend
2000 1 0.1 0.001 0
Overall Stiffness Relative Stiffness Stretch Relative Stiffness Shear Relative Stiffness Weak Bend Relative Stiffness Strong Bend
2000 1 0.1 0 0.001

Trouble Shooting

If there are visible penetrations between cloth geometry and the character geometry or within the cloth geometry itself, a few steps can be taken in order to solve it. It is recommended to do these one at a time (re-simulating, to check for improvements), since making many adjustments at once will significantly increase your simulation times and you won’t be able to narrow down the cause of the problem.

  • You can increase the Max Local Collision Passes to ensure that as many secondary collisions as possible are resolved, in a cheap way.

  • If the penetrations are resolved, but the result doesn’t look good, try increasing the Max Global Collision Passes instead. This is a bit more expensive, but more physically accurate.

  • If the results are still not satisfactory, try increasing the Min Substep Rate instead of increasing the collision passes.

  • If the cloth is very close to the body, the Thickness of the animated character geometry (Static Object) can be adjusted. You can do this on the Static Object node on the Collisions subtab of the Surface tab.

Tips for working with cloth

  • Be sure that cloth is never initially intersecting with the body geometry or with itself.

  • You can model the cloth geometry either with triangles or with quads. When using quads, ensure that the edges are aligned with the warped and weft directions of the fabric. When using triangles, supply an a vertex or point attribute materialuv that indicates the flow of the fabric directions.

  • If there need to be significant differences in polygon sizes in the geometry, make sure that there model has a gradual transition from larger to smaller sizes.

  • When stitching cloth, the points on both cloth sides need to line up.

  • The Wind Force can be used to create wind effects for cloth. Change or animate the wind behavior mainly using the Velocity parameter on the Wind Force.

  • Avoid simulating high-resolution geometry (such as rendering geometry) directly, because this will significantly slow down the simulation. Use the Cloth Proxy shelf tool to create a setup that uses the Cloth Capture and Cloth Deform nodes with a simpler mesh.

Cloth

Getting Started

Next Steps

Troubleshooting

How to