Soft-Body Dynamics


Unlike rigid bodies, Maya's soft bodies have elasticity. Each CV, or vertex, has an associated particle, which can be affected by other dynamics (such as fields) or by particle collisions, thereby deforming the object (Figure 18.56).

Figure 18.56. An Air field pushing part of a soft-body plane down in the negative y direction.


With particles affecting the surface, you can make flags wave in the wind, gelatin cubes wiggle when they hit the ground, or a belly jiggle as a character walks.

Soft bodies can also use non-soft objects as goal shapes. A goal shape represents a target shape for the soft body to settle into. The particles affecting the soft body are attracted to the CVs, or vertices, of the goal objectalmost as if they were attached by springs. This means that you can animate the original geometry, and the soft body will lag behind it, overshooting the original geometry before finally settling into that shape. An overweight man with a double chin that jiggles and lags behind the chin bone's movement is one example of this.

To create a soft body:

1.

Create a NURBS sphere.

In the timeline at frame 1, set a keyframe on the sphere by pressing .

2.

Move to frame 40 in the timeline.

3.

Translate the sphere 10 units in the negative y direction (Figure 18.57). Set another keyframe by pressing .

Figure 18.57. Setting a keyframe at frame 40 in the timeline.


4.

Move back to frame 1, and select the sphere.

5.

From the Soft/Rigid Bodies menu, select the box next to Create Soft Body to open the options.

6.

From the pop-up menu, select Duplicate, Make Copy Soft.

7.

Check the boxes next to Hide Non-Soft Object and Make Non-Soft a Goal (Figure 18.58).

Figure 18.58. The options for creating a soft body.


These options duplicate and hide the original geometry and make the duplicate a soft body. The goal then will be the original animated geometry that is hidden.

8.

Click Create.

If you play back the animation now, the soft body jiggles slightly as a whole at the end of the motion. This is because the goal weights on the soft body are all even.

Goal weights can be adjusted, even painted, on a soft body so that you can get just the right amount of movement from your object. In the next task, you'll make the top of the sphere lag behind and wiggle as the sphere stops.

To adjust goal weights for a soft body:

1.

Select the soft-body sphere.

2.

From the Soft/Rigid Bodies menu, select the box beside Paint Soft Body Weights Tool.

The Paint Attributes tool window opens, and your soft body turns white (Figure 18.59).

Figure 18.59. You use the Paint Attributes tool to paint soft-body goal weights.


3.

In the Tool Settings window for the Paint Attributes tool (which looks like the Attribute Editor), click the Reset Tool button at the top right.

4.

In the Paint Attributes section, change Value to 0.5.

5.

Paint the top of the sphere by clicking and dragging.

The color on the top should turn gray (Figure 18.60).

Figure 18.60. The Paint Attributes tool lets you interactively paint weight values on your objects.


6.

Play back the animation.

You should see the top jiggle as the sphere stops at frame 40 (Figure 18.61).

Figure 18.61. As the original sphere stops at frame 40, the soft body jiggles on the top until it comes to rest in its original shape.





Maya 7 for Windows and Macintosh(c) Visual Quickstart Guide
Maya 7 for Windows & Macintosh
ISBN: 0321348990
EAN: 2147483647
Year: 2006
Pages: 185

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net