Вы находитесь на странице: 1из 476

Learning Maya Version 1.0

January 1998, Alias|Wavefront, a division of Silicon Graphics Limited. Printed in U S A, All rights reserved.

Assist Publishing Group:

Don Chong, Bruce Darrell, Bob Gundu, Robert Magee

Assist Team:

Shawn Dunn, Haskell Friedman, Alan Harris, Steve Hinan, Lincoln Holme, Lisa Kelly, Cory Mogk, Remko Noteboom, Alan Opler, Lorna Saunders, Jason Ungerman

Special thanks to:

Rose Dawson, Dallas Good, Jill Jacob, Desiree Sy, Doug Whetter

The following are trademarks of Alias|Wavefront, a division of Silicon Graphics Limited:

Alias Maya Maya Artisan Maya F/X Maya PowerModeler

MEL Alias Metamorph OpenAlias Alias OpenModel Alias OpenRender

Alias PowerTracer Alias QuickRender Alias QuickShade Alias QuickWire Alias RayCasting

Alias RayTracing Alias SDL Alias ShapeShifter Alias StudioPaint ZaPiT!

The following are trademarks of Alias|Wavefront, Inc.:

 

Advanced Visualizer Explore

MediaStudio

3Design

Wavefront Composer Wavefront IPR

MultiFlip

Dynamation Kinemation VizPaint2D

Graph Layout Toolkit Copyright 1992-1996 Tom Sawyer Software, Berkeley, California, All Rights Reserved.

All other product names mentioned are trademarks or registered trademarks of their respective holders.

This document contains proprietary and confidential information of Alias|Wavefront, a division of Silicon Graphics Limited, and is protected by Federal copyright law. The contents of this document may not be disclosed to third parties, translated, copied, or duplicated in any form, in whole or in part, without the express written permission of Alias|Wavefront, a division of Silicon Graphics Limited.

The information contained in this document is subject to change without notice. Neither Alias|Wavefront, a division of Silicon Graphics Limited, nor its employees shall be responsible for incidental or consequential damages resulting from the use of this material or liable for technical or editorial omissions made herein.

or liable for technical or editorial omissions made herein. Alias|Wavefront ❚ 210 King Street East ❚

Contents

Learning Maya

How to use this book

Maya packaging

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xviii

xvii

What you should already know

.

.

.

.

.

.

.

.

.

.

.

xviii

Computer hardware

.

.

.

.

.

.

.

.

.

.

.

.

xviii

xviii

. Installing tutorial files

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xviii

Understanding Maya

 

xix

The user interface

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xx

Working in 3D

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xx

UV coordinate space

xx

Views

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxi

Cameras.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxi

Image planes.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxii

THE DEPENDENCY GRAPH

 

XXII

 

Nodes.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxii

Attributes

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxiii

 

Connections

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxiii

Pivots .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxiv

Hierarchies

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxiv

. ANIMATING IN MAYA

MEL scripting

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxv

XXV

Keyframe animation

 

xxv

Path animation

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxvi

 

Reactive animation

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxvi

Dynamics.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxvii

MODELING IN MAYA

.

.

.

.

.

XXVIII

NURBS curves

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxviii

NURBS

surfaces .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxix

. Construction history

Polygons

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxix

xxx

DEFORMATIONS

XXX

Lattices

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxx

Sculpt objects

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxx

Contents

. CHARACTER ANIMATION

Clusters

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxi

XXXI

 

Skeletons and joints

.

.

.

.

.

.

.

.

.

.

.

.

xxxi

Inverse kinematics

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxi

Single chain solver

.

.

.

.

.

.

.

.

.

.xxxii

Rotate Plane solver

.

.

.

.

.

.

.

.

.

.xxxii

IK spline solver

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.xxxii

Skinning your characters

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiii

Flexors

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiii

RENDERING

.

.

.

.

.

.

.

.

.

.

.

.

.

.

XXXIII

Shading groups

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiii

Texture maps

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiv

Lighting

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiv

. Hardware rendering

Motion blur

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxiv

xxxiv

A-buffer rendering

.

.

.

.

.

.

.

.

.

.xxxv

Raytrace rendering

.

.

.

.

.

.

.

.

.

.xxxv

How the renderer works

.

.

.

.

.

.

.

.

.xxxv

Conclusion

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xxxvi

Lesson 1: Bouncing a Ball

 

5

Creating a new project

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 6

BUILDING OBJECTS

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 6

. Create a floor surface

Creating the ball

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 6

. 9

. Setting display options

Viewing the scene

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

10

11

Building a simple hierarchy

 

12

Set pivot

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

13

ANIMATING THE BALL

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

Setting keys

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

Conclusion

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

17

iv Learning Maya

Lesson 2: Adding Character

 

19

Refining the animated channels

.

.

.

.

.

.

.

.

.

.

20

Cleaning up your curves

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

22

SQUASH AND STRETCH

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

23

Adding a scale node

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

24

Maintaining volume

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

26

Adding shear

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

27

Editing timing

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

30

Conclusion

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

31

Lesson 3: Rendering

 

33

Hiding the general UI

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

34

Hotkeys

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

34

SHADING GROUPS Creating materials

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

35

35

Texture maps

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

38

Positioning the texture

.

Lighting

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

39

40

. Placing a spot light

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

40

Test render the scene

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

44

Rendering animations

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

46

Conclusion

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

47

Lesson 4: Particles and Dynamics

49

. Add an emitter to the ball

Project set-up

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

50

50

Add gravity to the particles

.

.

.

.

.

.

.

.

.

.

.

.

.

.

51

Set particle attributes

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

52

Create the look of the particles

.

.

.

.

.

.

.

.

.

.

.

53

Create a particle collision

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

54

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

55

Create a particle event Hardware rendering Compositing particles

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

57

58

Resetting the user interface

.

.

.

.

.

.

.

.

.

.

.

.

.

.

60

Conclusion

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

60

Contents

Working with Maya

The workspace

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

61

Layouts

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

62

View panels

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.