Tuesday, April 21, 2009

Character Animation

Autodesk Smoke Tips & Tricks - Character Animation

Here's one of targa file given by our animator 'Wah Chai'. The cartoon character was split out into many pieces, different faces expression, gestures and so on.For simple illustration, i would use the head as example. First, i loaded 3 different heads, and put them into same position. Then add a axisC for controlling the character.
At image1 transparency, put in expression :
if(axisC.position.x==0,0,100)
At image2 transparency, put in expression :
if(axisC.position.x==1,0,100)
At image3 transparency, put in expression :
if(axisC.position.x==2,0,100)
At axisC, set animation to Constant.
Now you can use your axisC 's positionX to control which head you want at anytime.
Provided that if your face is breaking into many small pieces, like nose, eyes, eye brown, mouth, then you can use axisC other parameters like positionY, Z, size X, Y, Z and so on to control each element of the face.
Say if you only got 1 frame of eye, you still can animate it by loading the image several times and twist each differently (size, postion, rotate....), then use the axisC to control it. For hand, you can load the same image few times, then each move forward slightly, between the movement, you can change to other gesture, and then control it with axisC.
Of course, this technique is suitable for cell animation only, if you want to animate the character all by yourself with axis movement, then it's a different story.

Wednesday, April 1, 2009

Simple Keystroke

Autodesk Smoke Tips & Tricks - Simple Keystroke

Very busy recently, no time to update the blog, here's a very simple keystroke some might not know of :

1. When you hit 'J' (Replace), the clip in desk will stretch to fit the clip lenght in recorder. But if you hit CTRL-J instead, the clip will just replace the clip without stretch. I used this very often to just change a shot between desk and recorder.

2. When i got a long duration clip, and i want to preview it, i could use the pen scroll through the clip. I could also use the stupid 'V' and 'up or down arrow' key to speed up the scroll speed. Another way i used quite often is, just press '5' numeric key then press and hold the 'left or right arrow' key, this will step through the clip every 5 frame, and you can change it very fast by just press another numeric number then press hold the 'left or right arrow' key again.

3. Another key stroke i used often is, if you smoke halt and not respon to any key press or pen move, then use ALT + TAB to call the smoke shell to front, then press CTRL + C to close the smoke.

Monday, February 16, 2009

Trail

Autodesk Smoke Tips & Tricks - Trail

Today i will use the 'SelectionOrder' expression to do this trail effect. Of course, you can do the similar effect with motion blur control or average effect, but sometimes i find the motion blur is a bit cumbersome, and the average effect is not in compositing itself.
Step 1 : Here i make an axis1 connect to a title image, and add a axisC to act as controller.
Step 2 : Do you animation to fly the image title around in axis1.
Step 3 : Duplicate the axis1 branch several times. Here i duplicate it 10 times.
Step 4 : In animation menu, select axis2, then in schematic, hold the 'control key', draw a box form left to right, start from axis2 to axis11 to select them.
Step 5 : in animation manual enter expression :
eval(axis1,frame-(SelectionOrder*axisC.position.x))
Step 6 : In axisC, set the postionX to 2, then run the animation. Change the positionX to other value to see what will happen.
Step 7 : Now i will going to set the trail fade effect. Select image2 (which join to axis2), and in the transparency enter expression :
image_L1.transparency-(axisC.position.y*2)
Select image3 and enter expression : image_L1.transparency-(axisC.position.y*3)
and do the same for the remains axis.
(Note: because my image is named image_L1, so in my expression, it is image_L1. If you image name is image1, then just use image1.transparency instead)Step 8 : Set axisC positionY to -14, and run the animation to see the fade effect. Try different fade value (positionY).Now, you can change the animation anytime by changing axis1, and you can also animate the trail amount and fade in animation.