Bookshelf Contents Previous Next Glossary Index Search

Lesson 18: Animating with Metamorphosis

This lesson shows you how to use Alias' metamorphosis capabilities to bring a wine glass to life. Over time, metamorphosis can change the object's shape, size, and location. You can apply metamorphosis to a whole object or to specific parts.

The hand-drawn storyboard below illustrates the goal of this lesson. You start with a glass tumbler that "morphs" into a wine glass. The wine glass then begins bobbing its "head" as it starts to walk. In addition to this movement, you can change its color over time.

You begin this lesson by retrieving the profile curves provided for the tumbler and the wine glass. After using the profiles to create the 3D shapes, you set up the morphing animation. Next, you manipulate the "head" and "feet" to make the glass appear to walk. You then complete the piece by animating the shader.

Initial Setup

This lesson begins with two prepared curves that represent the outlines of the tumbler and the wine glass. These profiles are revolved to create the 3D forms needed for metamorphosis.

Open the wire file

  1. From the File menu, select Open. Open L18_GlassWalker from the CourseWare directory. The file contains the two profile curves needed for the lesson.

    Change to a full-screen Front window

  2. From the Layouts menu, select Front to work in a full-screen front window.

    Note that the two curves have the same number of CVs and edit points.

    Note: If you can't see CVs and edit points, pick the curves, then turn on the CVs and edit points in the Control box in the ObjectDisplay menu.

    The curves must also have the same U direction. This ensures that the resulting surfaces have the same number of CVs, to be used for setting the keyshape.

Revolve the two profile curves

  1. Select Surfaces Revolve-. Change Sections to 6, and make sure you are using 360 degree revolution around the Z-axis.

  2. Click Go. Click on the wine glass profile.
  3. After the surface has been created, click on the tumbler profile to revolve it.

    When the revolutions are completed, you'll have two separate surfaces-a glass tumbler and a wine glass-that occupy the same space.

    Delete History and template the profile curves

  4. Select Pick Object and click on the curves so that both revolves are selected.
  5. From the Delete menu, select Del constr history to remove history from the revolves.
  6. Click-drag a pick box around the surfaces and curves so that you pick the original profile curves and unpick the revolve surfaces.
  7. From the ObjectDisplay menu, select Template to change the original curves into templates. These can serve as reference points for the initial part of this workshop.

    Move the tumbler to the left of the wine glass

  8. With nothing picked, select
    Pick Object. Pick the glass tumbler.
  9. Select Xform Move and use the middle mouse button to move it to the left of the wine glass. The wine glass and tumbler should not be touching.
  10. Select Pick Nothing to make sure nothing is active in the window.

Setting Keyshape

The Set key shape command is used to morph from the tumbler to the wine glass. This morphing completes the first half of the storyboarded animation.

Note: The two surfaces you are working with have an identical number of CVs and isoparm patches. Only two surfaces that are perfectly matched in this way can have a Set key shape applied to them.

Edit the Set keyshape options

  1. Select Anim Set key shape-. Make sure that the Shape Center option is set to Centroid. This creates the best intermediate shapes.

  2. Click Go.

    Choose the surface that is to change shape

  3. Alias prompts you to:

    Pick the curves or surfaces which are to change shape. Press Go when ready.

  4. Click on the wine glass, since it is the object that changes its shape and also represents the final shape of the animated object.
  5. Click Go.

    Enter the final frame number

  6. Next, the system prompts you for a frame number. Type 50 in response and press Enter. This sets the final frame for this sequence at frame 50.

    Choose the matching surface

  7. Alias prompts you to select a matching curve or surface. Click on the glass tumbler, which represents the shape of the object at the starting point of the animation. The wine glass assumes the shape of the tumbler.

    Enter the beginning frame number

  8. When prompted for a frame number, type 1 and press Enter. This ensures that the wine glass looks like the tumbler at frame 1.

    Delete the original glass tumbler

  9. The glass tumbler is no longer needed for the animation. With nothing picked, select Pick Object.
  10. Click on the original glass tumbler that sits to the left of the transformed wine glass.
  11. From the Delete menu, select Del active.

    Play back the keyshape animation

  12. If the time slider is not visible, go to the Animation menu and select Tgl time sliderThe time slider is just below the menu bar. It has a number of function buttons.
  13. Click on the Start/End button at the left end of the time slider and change it to Min/Max.
  14. Click the Play button to play back the animation. Alias now interpolates the shapes needed to change the glass tumbler to the wine glass.
  15. The templated profile curves show the outline of the metamorphosis. Click on the screen when you are finished viewing the playback.
  16. Click the First Frame button to return to frame 1.

    Delete the templated profile curves

  17. With nothing picked, select Pick Template. Click-drag a pick box around the templated profile curves to pick them.
  18. From the Delete menu, select Del active to delete them. The tumbler-shaped wineglass should be the only object left on the screen.

    Note: It is generally good practice to keep profile curves until you are happy with the resulting animation. If you don't like the results from the first Set keyframe, you could use the profiles to start again.

    Playback the animation in the perspective window

  19. From the Layouts menu, select Perspective to make the perspective window fill the screen. Change the view with the tumble and dolly tools to see the wine glass clearly.
  20. Click on the Play button in the time slider to watch the metamorphosis in three dimensions. Stop playback by clicking on the Stop button. Click on the Last Frame button to go to frame 50, or type 50 in the frame field.

Using Play Blast

From the Animation Preview window, you can set up a Play Blast to test animation of work completed so far. Alias loads this test animation into memory in its first pass so it can play back quickly during successive previews.

Create a shaded display of your model

  1. After you have stopped the animation playback, from the DisplayTgls menu, select Shade. The wine glass is shaded in the default blue.
  2. To optimize the processing speed, from the DisplayTgls menu, select Model to turn off the wireframe display.
  3. If CVs and Hulls are displayed around the glass, from the ObjectDisplay menu, select Control -. In the Control window, click on all the options to turn them off.

  4. Click Go to stop displaying the object's control information.

    Open the Animation Playback options

  5. From the Animation menu, select Playback options....
  6. Resize and position the Playback Options window so you can see the wine glass in the perspective window, as well as all of the Playback options.

    Set the Play blast and Compress options

  7. Click Play Blast in the Playback options window to display the Play Blast options. Make sure that a check mark appears in the Compress box.

    Note: A Play Blast's output resolution is a percentage of the originating window size, so yours may be slightly different.

    Play back the shaded animation

  8. Click Show Playblast ON and then click the Play button in the time slider and watch the shaded object change from a tumbler to a wine glass.

    The initial playback is displayed frame-by-frame as the system computes and stores the animation in memory. After it has played through once, the animation plays back faster.

    Preview the frames with the slider bar

  9. In the time slider, click the Stop button to pause the playback, and then click-drag the current frame slider (the black triangle) to interactively control the movement.
  10. Double click on the Stop button to close the Play Blast window. Click Show Playblast OFF then close the Playback Options window.

    Return to a wireframe view with CVs displayed

  11. From the DisplayTgls menu, select Shade to turn off shading. From the same menu, select Model to return to the wireframe display.
  12. Select Pick Object and pick the glass.
  13. From the ObjectDisplay menu, select
    Control-. Set Scope to Active and set All to On. You need to see the object's CVs in the next section of the lesson.

Assembling CVs

With the initial metamorphosis finished, you can start to group various CVs, to prepare for the walking motion.

Return to a full screen Front window

  1. Select Pick Nothing to ensure nothing is active.
  2. From the Layouts menu, select Front to make the Front window fill the screen.

    View frame 50

  3. Select Anim View frame and type 50 after the prompt. Although it is not necessary to perform this step to animate CVs, it makes it easier to select the appropriate CVs for the four sets.

    Note: You can also type 50 in the frame field of the time slider, or click the Last Frame button of the time slider.

    Assemble CVs into a CV set

  4. Use the dolly tool to get closer to the base of the wine glass.
  5. Select Pick Point Types CV and drag a pick box around the middle group of CVs (as shown below).

  6. From the Edit menu, select New set.

    Tip: This is a set; that is, an object made up of the active CVs. In the following steps in this lesson, you can pick this set of CVs easily.

    By assembling CVs, you can animate specific areas of an object over time. Assembling CVs into a set is similar to a group, except that a set does not show up as a node in the SBD window. On the other hand, all items in a set have a common pivot point that can be used for transformations. In this part of the lesson, you are going to assemble various CVs into sets, in order to create the walking wine glass.

    Display and rename the set

  7. From the Windows menu, select Sets Edit set....

    The Set Editor window appears on the screen, listing the CVs assembled in this first set.

  8. Double click in the Set Name field and type a new name, middle, for this set.

  9. Close the Set Editor window.

    Create a set of the left side of the wine glass

  10. With nothing picked, select Pick Point Types CV and click-drag a pick box around the CVs on the left side of the wine glass base, as shown below.

  11. From the Edit menu, select New set.
  12. From the Windows menu, select Sets Edit set and in the Set Editor window, name this set leftfoot. Close the Set Editor window.

    Create a set of the right side of the wine glass

  13. With nothing picked, select Pick Point Types CV and click-drag a pick box around the CVs on the right side of the wine glass base, as shown below.

  14. From the Edit menu, select New set, then from the Windows menu, select Sets Edit set. In the Set Editor window, name this set rightfoot. Close the Set Editor window.

    Create a set of the top side of the wine glass

  15. Select Pick Nothing. Track the view down so that you can see the top of the wine glass.
  16. Select Pick Point Types CV and click-drag a pick box around the CVs on the top of the wine glass to create the final set.

  17. From the Edit menu, select New set, then from the Windows menu, select Sets Edit set. In the Set Editor window, name the final set top.
  18. Close the Set Editor window.

Open the Set lister.

  1. From the Windows menu, select
    Sets Set lister-.

  2. Make sure that the Mode is set to All, then click Go. The Set List Window appears on the screen.

    Note: When you click on the name of a set, the CVs that make up the set are highlighted in the front window. Select Pick Nothing to make sure nothing is active.

Animating CVs

Next, you animate the grouped CVs, to make the wineglass walk. The walking motion is created by executing several Xforms on the CV groups and then setting keyframes.

Check that you are viewing keyframe 50

  1. Before you begin animating CVs, check that the CVs are at the correct location. If you didn't reset your view to frame 50 earlier, do so now.

    Set keyframes for the middle CVs

  2. Select Pick Nothing. In the Set List window, click on the set named middle.
  3. From the Animation menu, select Set keyframe to set the initial position of these CVs. Click on YES to confirm the overwriting of earlier data for
    frame 50.

    Scale the selected CVs and set keyframe

  4. Select Anim View frame and type 60.
  5. Select Xform Nonp scale and enter absolute keyboard values for the non-proportional scaling by typing:
    a1 0.3 0.8.

  6. From the Animation menu, select Set keyframe. This defines the first walking movement of the wine glass base.

    Rotate the top CV set and set keyframe

  7. In the Set Lister, click on the top set to pick it.
  8. Select Xform Rotate. From this point on, you should enter relative values for Xform functions. Type r -22.5 to rotate the top of the wine glass.

  9. From the Animation menu, select Set keyframe.
  10. Select Anim View frame and type 70. Select Set keyframe.
  11. Select Anim View frame and type 80. Select Set keyframe. This sets two more keyframes for this position.

Rotate the top again and set keyframe

  1. Select Anim View frame and type 75.
  2. Select Xform Rotate and enter rotation values of 0 0 -30. The movement of the wine glass top needs to be modified further, by inserting keyframe values between the major keyframe set in the last step.

  3. From the Animation menu, select Set keyframe.

Rotate the top a third time and set keyframe

  1. In the time slider, click on the current frame indicator and type 65.
  2. Select Xform Rotate and enter rotation values of 0 0 30.

  3. From the Animation menu, select Set keyframe.
  4. Select Pick Nothing to ensure nothing is active.

Move the leftfoot and set keyframes

  1. In the time slider, change the current frame to 60.
  2. From the Set Lister, pick leftfoot.
  3. From the Animation menu, select Set keyframe.
  4. In the time slider, change the current frame to 70.
  5. From the Animation menu, select Set keyframe.
  6. In the time slider, change the current frame to 65.

    Use Xform Move and move these CVs in relative mode by 0 0 1.

  7. From the Animation menu, select Set keyframe.
  8. Select Pick Nothing to deactivate the CVs.

Move the rightfoot and set keyframes

  1. In the time slider, change the current frame to 70.
  2. From the Set Lister, pick rightfoot.
  3. From the Animation menu select Set keyframe.
  4. In the time slider, change the current frame to 80.
  5. From the Animation menu, select Set keyframe.
  6. In the time slider, change the current frame to 75.
  7. Select Xform Move and move them by 0 0 1.

  8. From the Animation menu, select Set keyframe.
  9. Select Pick Nothing to ensure nothing is active.

Set the Start and End point of the animation

  1. In the time slider, choose the Start/End button. Enter 50 for the Start value and 80 for the End.

    This means that only the last 30 frames (the walking sequence) will be shown when the animation is played back.

    Preview the animation in the time Slider

  2. Click the play button in the time slider to see the walking wine glass.
  3. Click anywhere on the screen to stop the playback when you are finished.

Applying Time Cycles

To lengthen the animation and repeat the walking motion of the glass, you use a function called Cycles. This function lets you reapply the animation to a selected object or group of CVs over a period of time.

Select the CV sets from the Set Lister

  1. From the Set Lister, select leftfoot, rightfoot and top. The CVs that correspond to these sets are highlighted on the wine glass.

    Set the Cycles option box

  2. From the Animation menu, select Time Warps New cycles warp-. The option box appears. In the option box, set the Loop Start frame to 60 and the Loop End frame to 80.
  3. This means that the animation will cycle between frames 60 and 80. Set the Paste To Frame to 81 so that the cycles are added after frame 80. Set the Repetitions to 10.

  4. To apply the cycle to the animation, click Go.

    Preview the animation

  5. In the time slider choose Min/Max to change back to Min and Max fields. The Max field now reads 281, since the entered cycle options cause the walking wine glass sequence to repeat 10 times after the original 80 frame animation.
  6. Set the Frame to 1.0 and click on the Play button to view the full animation.
  7. Click the Stop button to finish the playback.

    Close all windows and unpick all objects

  8. Close the Set Lister window.
  9. Select Pick Nothing to make sure nothing is active on the screen.

Animating Shaders

Next, you animate the glass color from a dark blue to a golden yellow. To ensure that only the shaders are animated, you can use a local setting from the parameter controls.

View the Parameter control window

  1. From the Animation menu, select Param control. In the Parameter Control window, you can modify a number of variables from either a global or local perspective.
  2. Click on the arrow to the left of the GLOBAL Parameters to display its options.

    Note: Unlike the following illustration, some parameters may already be set. If so, do not uncheck them.

    Activate the shader options

  3. At the end of the GLOBAL Parameters option list is a field for Shading Parameters. To the right of this field is a small box. Click in this box to assign a check mark. This indicates that you want to animate the shading parameters.

  4. Close the Parameter Control window.

    View frame 1 to return to the glass tumbler shape

  5. Select Anim View frame and type 1 after the prompt. The wine glass reverts to the original glass tumbler.

    Open the Shader Lister

  6. From the Windows menu, select Multi-lister Shaders... to display the Shader Lister window.
  7. Double-click on the default Shader to display its shading parameters.
  8. In the Common Shader Parameters section, click the default blue color to open the Color Palette.
  9. Change the shader color to dark blue. Leave the Shader Editor and Color Palette windows open.

    Set the first keyframe

  10. Press the Shift key and click on the name Color in the Shader Editor.
  11. Next, click on the Key button at the top of the Editor. A small parallelogram appears next to the word Color to indicate that keyframes have been set.

    Change the shader's color and again set keyframe

  12. In the time slider, go to frame 50.
  13. Change the color to a golden yellow.
  14. With the name Color highlighted in the Shader Editor, again click on the Key button at the top of the Editor.

    Preview the shader animation in the Multi-lister

  15. In the Multi-lister, click and hold on the animation preview button (the small parallelogram in the name field of the shader).

    This previews the shader being animated (frames 1 to 50) before you apply it to the scene.

    Note: This preview goes faster if the Shader Editor and the Color Editor are closed.

  16. Close all the shader windows.

Playblast the animation

You can playblast the animation to preview it.

Go to a Perspective view window

  1. From the Layouts menu, select Perspective to return to a perspective view of the glass.
  2. Dolly and tumble the view to a desired location.

    Return to the glass tumbler shape

  3. Select Anim View frame and type 1 after the prompt.
  4. Select DisplayTgls Model to toggle off the model.
  5. From the ObjectDisplay menu, select Control -. Turn off all the control displays.
  6. From the DisplayTgls menu, select Shade. The tumbler is now dark blue.

    Set up a PlayBlast

  7. From the Animation menu, select Playback options.... Open the Play Blast section. Turn the Show playblast option to ON and make sure the Compress box is check marked.

    Playblast the animation

  8. Press the Play button in the time slider. After the system has gone through its initial frame-by-frame computations, the object changes from a dark blue tumbler to a golden wine glass, then the wine glass goes through 10 walking cycles.

Conclusion

In this lesson you have learned how to:

You have now seen the power of setting keyframes and setting up CV sets. This lesson is the first that deals with live action objects. Animating objects through either metamorphosis or CV sets is the first step in building characters in 3D. In the following lessons you will learn about other Alias features that can be used to give characters life.



Bookshelf Contents Previous Next Glossary Index Search

[email protected]
Copyright © 1998, Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved.