Simulation
Simulation makes hair move dynamically: it bounces, sways and settles as the character moves, falls with gravity, and is pushed by wind and other forces.
Yeti simulates the strands of a groom, not every rendered hair. The fibres in the graph follow the groom's strands as usual, so the whole coat of fur moves with the simulation, while Yeti only has to simulate a few thousand strands. Each Groom node has its own simulation settings, so different parts of a character can move differently.
Running a Simulation
- Select the Groom node and, in the Simulation section of its Attribute Editor, turn on Simulation.
- Set the Start Frame. Starting a few frames before the shot gives the hair time to settle under gravity before the shot begins.
- Go to the start frame and play the animation forwards, one frame at a time: set Maya's playback to Play every frame.
Each frame of a simulation is worked out from the frame before, so it only updates as you play forwards. Going back to the start frame (or earlier) resets it.
Add collision objects, such as the character's body, so the strands don't pass through them. To render a simulation, cache it first, so every frame of the render uses the simulated result.
You can turn simulation off for some strands by painting a sim_simulate attribute on the groom. Strands with a value below 0.5 aren't simulated, which is useful for areas that shouldn't move, such as short fur on the face.
Simulation Parameters
World
The World attributes control the overall behaviour of the simulation solver.
| Attribute | Description |
|---|---|
| Start Frame | The first frame of the simulation. |
| Frames Per Second | Sets the time step of the simulation. Usually you'll want this to match the frame rate of your Maya scene, but you can change it to slow down or speed up the motion. |
| Iterations | How many times the solver applies its internal constraints at each step. Lower values give springier strands that may not collide as you'd like. If a simulation "blows up" (the strands move unexpectedly, usually into a mess), increase the iterations for a more accurate solve. |
| Gravity | The strength of gravity in the simulation. Set it to 0 if you'd rather use a Maya gravity field. |
| Gravity Direction | The direction of gravity. |
Dynamic Properties
The Dynamic Properties control the strands' physical properties. You can paint some of them per strand, with the attributes listed below.
| Attribute | Description |
|---|---|
| Damping | How quickly the motion dies down. Higher damping makes the hair settle faster, as if it were moving through a thicker medium. |
| Mass | How heavy the strands are. Paint a sim_mass attribute to set it per strand. |
| Stiffness | How stiff the strands are: stiff strands bend less. Paint a sim_stiffness attribute to set it per strand. |
| Root Stiffness / Tip Stiffness | Scales the stiffness from the root to the tip of the strands. For example, stiff roots and soft tips let the ends swing while the roots hold their shape. |
| Rest Influence | How strongly the strands try to return to their groomed shape. Raise it to keep the simulated hair close to the groom. |
Density Gradient Field
Real hair pushes against neighbouring hair, which keeps it from collapsing flat. Simulating every strand colliding with every other strand would be very slow, so the Density Gradient field approximates it: it pushes strands apart where they bunch up, which helps the hair keep its volume.
| Attribute | Description |
|---|---|
| Weight | How much influence the field has over the simulation. |
| Radius | The radius over which the field spreads forces. A larger radius gives the hair more volume. |
Collision Objects
By default, a groom doesn't collide with any objects in the scene, not even the surface its strands grow from.
You need to add each collision object yourself: open the Collision Objects section and click Add Object(s) to choose the objects that affect the strands.
When you add a collision object to a groom, Yeti adds two attributes to the object:
| Attribute | Description |
|---|---|
| Collision Friction | How much friction slows the strands when they collide with the object. |
| Collision Offset | How far from the object's surface the strands are kept. |
Turn off the Collisions toggle to ignore every object in the list.
Maya Fields
Maya's dynamic fields can affect the strands too. To use them, click Add Field(s) in the Fields section and choose any number of the fields in the scene. When several fields are connected, their forces add together.
Corrective Grooming
A groom that looks right in the rest pose may not look right in every pose of an animation, or after simulation: for example, fur might crumple where a shoulder bends. Corrective grooming lets you fix the groom for a particular shot or pose without changing the original groom. You groom the fix on a separate corrective groom, which is layered on top, and you can animate how strongly it applies.
Corrective grooms work whether you're using a cache, a groom (.grm) file or the original groom.
To start, open the Corrective Grooming section of the Yeti node you want to correct, choose the groom to correct from Current Grooms, and click Add Corrective Groom.
This creates a new groom in your scene, which you can use to adjust the current groom. By default it has no effect, so you'll need to raise its weight.
To adjust the weight, select the new corrective groom and open the Corrective Groom section of its Attribute Editor. Use the Corrective Groom Weight slider to blend the correction in or out. You can animate it, too.
For finer control, create an attribute called corrective_weight on the corrective groom and paint it. The painted values control the amount of correction, scaled by the overall weight.