flying butterfly animation

59
Flying butterfly animation - Tutorial for beginners Written by zelal Monday, 25 February 2008 Category Autodesk Maya - Animation, Materials, textures and Modeling In this tutorial, we will make a simple butterfly and animate it. Figure 1. Click here to view larger image. Step 1 Start Maya. Go to Side view. Select EP Curve tool.

Upload: syed75

Post on 29-Oct-2014

112 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Flying Butterfly Animation

Flying butterfly animation - Tutorial for beginners

 

Written by zelal  Monday, 25 February 2008Category Autodesk Maya - Animation, Materials, textures and Modeling  

 

In this tutorial, we will make a simple butterfly and animate it. 

Figure 1.  Click here to view larger image.

 

Step 1Start Maya. Go to Side view. Select EP Curve tool. 

Page 2: Flying Butterfly Animation

Figure 2.  Click here to view larger image.

 

Step 2Draw a profile curve for the main body of butterfly. 

Page 3: Flying Butterfly Animation

Figure 3.  Click here to view larger image.

Step 3Right-click on the Curve and select Vertex mode. 

Page 4: Flying Butterfly Animation

Figure 4.  Click here to view larger image.

 

Step 4Refine the shape by moving vertices using move tool. 

Page 5: Flying Butterfly Animation

Figure 5.  Click here to view larger image.

 

Step 5Make sure “Surfeces” menu-set is selected (‘F4’ is shortcut for Surface menu-set). While the curve is still selected, go to Surfaces > Revolve. 

Page 6: Flying Butterfly Animation

Figure 6.  Click here to view larger image.

Step 6

You will get the geometry for the main body like below.

 

Page 7: Flying Butterfly Animation

Figure 7.  Click here to view larger image.

 

Step 7

Again using EP Curve tool, draw the shape for right-wing.

 

Page 8: Flying Butterfly Animation

Figure 8.  Click here to view larger image.

 

Step 8

Choose Edit Curves > Open/Close Curves to close the curve.

 

Step 9Click Surfaces > Planar. 

Page 9: Flying Butterfly Animation

Figure 10.  Click here to view larger image.

 

Step 10You will have a wing geometry as below. 

Page 10: Flying Butterfly Animation

Figure 11.  Click here to view larger image.

 

Step 11To see it at smooth level -3, press ‘3’. 

Page 11: Flying Butterfly Animation

Figure 12.  Click here to view larger image.

Step 12Right-click on the wing curve. Go to vertex mode and move vertices to reshape the wing as you want. 

Page 12: Flying Butterfly Animation

Figure 13.  Click here to view larger image.

 

Step 13More tweaking and refining............ 

Page 13: Flying Butterfly Animation

Figure 14.  Click here to view larger image.

 

Step 14For rotating (Flapping) purpose of the wings we should place the Pivot at appropriate place so that it can rotate around the proper center. So, Select the wing surface and press INSERT to Pivot editing mode and move the Pivot as shown below 

Page 14: Flying Butterfly Animation

Figure 15.  Click here to view larger image.

Step 15Press INSERT again to exit the Pivot editing mode. We do not need the profile curves for body and wing anymore. So it’s a good idea to delete the History at this stage. Click Delete by Type > History 

Page 15: Flying Butterfly Animation

Figure 16.  Click here to view larger image.

 

Step 16To get the left wing, select the right wing and choose Edit menu and click the Option box icon for Duplicate Special command. 

Page 16: Flying Butterfly Animation

Figure 17.  Click here to view larger image.

 

Step 17In the Duplicate Special Option box, set the Scale = -1 and click Duplicate Special. 

Page 17: Flying Butterfly Animation

Figure 18.  Click here to view larger image.

Step 18Move the wing to the left so it is placed in the appropriate place. 

Page 18: Flying Butterfly Animation

Figure 19.  Click here to view larger image.

 

Step 19For making antenna, choose again the EP Curve tool and draw a curve as shown below. 

Page 19: Flying Butterfly Animation

Figure 20.  Click here to view larger image.

 

Step 20Click on Circle icon to have a Circle in the center of the view. 

Page 20: Flying Butterfly Animation

Figure 21.  Click here to view larger image.

Step 21Move the circle up as show below. Then SHIFT+Click the antenna curve. 

Page 21: Flying Butterfly Animation

Figure 22.  Click here to view larger image.

 

Step 22Apply Surface > Extrude. 

Page 22: Flying Butterfly Animation

Figure 23.  Click here to view larger image.

 

Step 23You will get a extruded shape for the antenna geometry. But it’s not in the proper place and also we do not want to have so thick antenna. 

Page 23: Flying Butterfly Animation

Figure 24.  Click here to view larger image.

Step 24Press CTRL+A to open the Attribute Editor > extrude1 tab. 

Page 24: Flying Butterfly Animation

Figure 25.  Click here to view larger image.

 

Step 25In the Extrude History group, select “Component Pivot” as Use Component Pivot type. Check “Fixed Path” option. Make sure other option “Use Profile Normal” is also checked. 

Page 25: Flying Butterfly Animation

Figure 26.  Click here to view larger image.

 

Step 26Now, select the circle again and under Attribute Editor > makeNurbCircle1, set the radius = 0.1 or even lower value. 

Page 26: Flying Butterfly Animation

Figure 27.  Click here to view larger image.

Step 27Again under extrude1 tab, set the Scale = 0.0 in the Extrude History parameters group. 

Page 27: Flying Butterfly Animation

Figure 28.  Click here to view larger image.

 

Step 28Again apply Edit > Delete by Type > History. 

Page 28: Flying Butterfly Animation

Figure 29.  Click here to view larger image.

 

Step 29While the antenna geometry is selected, apply Edit > Duplicate Special to get the left antenna as well. 

Page 29: Flying Butterfly Animation

Figure 30.  Click here to view larger image.

Step 30We do not need the curves now. So, choose Window > Outliner. 

Page 30: Flying Butterfly Animation

Figure 31.  Click here to view larger image.

 

Step 31In the Outliner, Select all the curves by CTRL+Select method and press DELETE. 

Page 31: Flying Butterfly Animation

Figure 32.  Click here to view larger image.

 

Step 32Now there is no unnecessary curves in our scene. 

Page 32: Flying Butterfly Animation

Figure 33.  Click here to view larger image.

Step 33Select the middle main body and change the name of it to “main body” in the channel box. 

Page 33: Flying Butterfly Animation

Figure 34.  Click here to view larger image.

 

Step 34Rename the body’s other individual parts as well. 

Page 34: Flying Butterfly Animation

Figure 35.  Click here to view larger image.

 

Step 35Click Animation Preference button at the bottom-right corner of Maya Window and choose Playback end at 100 and Animation end at 100. Click “Save”. 

Page 35: Flying Butterfly Animation

Figure 36.  Click here to view larger image.

Step 36We will now make the hierarchy for the body as we want all wings and antennas to be driven with the main body. For this, select the right wing and then SHIFT+Select the main body. Press ‘P’ to make the main body as parent of the right-wing. Repeat the same for other three parts as well. 

Page 36: Flying Butterfly Animation

Figure 37.  Click here to view larger image.

 

Step 37Now, select the main body and rotate it 90 degree around Z axis. 

Page 37: Flying Butterfly Animation

Figure 38.  Click here to view larger image.

 

Step 38Select the left wing and choose Modify > Freeze Transformations. It will not lock the transformations, but it will neutralize the present transforms value to Zero so that we can rotate or move it starting from 0 (zero). Do the same for right wing as well. 

Page 38: Flying Butterfly Animation

Figure 39.  Click here to view larger image.

Step 39Go to Frame no.1 if you are already not there. Select both the wings and in the channel box, Drag+Select all three Rotate parameters’ name. 

Page 39: Flying Butterfly Animation

Figure 40.  Click here to view larger image.

 

Step 40Right-click and choose Key Selected. 

Page 40: Flying Butterfly Animation

Figure 41.  Click here to view larger image.

 

Step 41Select the right wing. Click “Auto Keyframe Toggle” button. It will turn red to indicate that auto-keyframing active. Go to frame no. 5. 

Page 41: Flying Butterfly Animation

Figure 42.  Click here to view larger image.

Step 42Rotate the wing -45 degree around Y axis. Now a keyframe is automatically set at frame no.5 for the right wing. 

Page 42: Flying Butterfly Animation

Figure 43.  Click here to view larger image.

 

Step 43While you are still at frame no. 5, select the left wing. Rotate it 45 degree around Y axis. 

Page 43: Flying Butterfly Animation

Figure 44.  Click here to view larger image.

 

Step 44Go to frame no. 10 and set the Y rotations back at 0 for both the wings. 

Page 44: Flying Butterfly Animation

Figure 45.  Click here to view larger image.

 

Step 45Go to frame no. 15. This time, rotate the right wing 45 degree and left wing -45 degree around Y axis. 

Step 48You will see a sine wave against “Rotate Y” in the Graph Editor window. 

Page 45: Flying Butterfly Animation

Figure 49.  Click here to view larger image.

 

Step 49Choose Curves > Post Infinity > Cycle. 

Page 46: Flying Butterfly Animation

Figure 50.  Click here to view larger image.

 

Step 50To get the infinity graph visible apply View > Infinity. 

Page 47: Flying Butterfly Animation

Figure 51.  Click here to view larger image.

Step 51Then zoom-out by ALT+Right-mouse Drag in the graph window to see the. You will see the infinite sine wave of looped animation for the right wing. 

Page 48: Flying Butterfly Animation

Figure 52.  Click here to view larger image.

 

Step 52Repeat the last 5 steps for the left wing as well. 

Page 49: Flying Butterfly Animation

Figure 53.  Click here to view larger image.

 

Step 53To drive the butterfly on a path create an EP Curve in the Top View like below or as you want. 

Page 50: Flying Butterfly Animation

Figure 54.  Click here to view larger image.

Step 54Select the butterfly’s main body and SHIFT+Select the new path curve. Choose “Animation” menu-set (‘F2’ is the short-cut). 

Page 51: Flying Butterfly Animation

Figure 55.  Click here to view larger image.

 

Step 55Choose Animate > Motions Paths > Attach to Motion Path. 

Page 52: Flying Butterfly Animation

Figure 56.  Click here to view larger image.

 

Step 56Go to Perspective view and play the animation. The butterfly is moving through the path, but orientation is wrong. 

Page 53: Flying Butterfly Animation

Figure 57.  Click here to view larger image.

Step 57To correct this problem, we have to edit Motion Path Attributes. Open the Attributes Editor and under “motionPath1” tab, set the Front Axis = Y and Up Axis = X in the Motion Path Attributes group. 

Page 54: Flying Butterfly Animation

Figure 58.  Click here to view larger image.

 

Step 58Zoom-in and Play the animation. Your butterfly should now move over the path while flapping its wings. That’s all of the animation. 

Page 55: Flying Butterfly Animation

Figure 59.  Click here to view larger image.

 

You can download the movie file of the flying butterfly animation in the following link:Movie.

Page 56: Flying Butterfly Animation

Figure 46.  Click here to view larger image.

 

Step 46Go to frame no. 20 and set the Y rotation for both the wings back at 0 degree. 

Page 57: Flying Butterfly Animation

Figure 47.  Click here to view larger image.

 

Step 47We have got a single-loop animation from 0 – 20 frames for both the wings. We will make this animation to be repeated all the way of the animation using Graph Editor. Select the right wing. Choose Window > Animation Editors > Graph Editor. 

Page 58: Flying Butterfly Animation

Figure 48.  Click here to view larger image.

Page 59: Flying Butterfly Animation

Figure 9.  Click here to view larger image.