rss
twitter
    Find out what I'm doing, Follow Me :)

Sunday, September 27, 2009

Animated Shine

Cars look so shiny and new after a nice wash and polish... How about we keep them that way? With this tutorial, you'll learn how to add an animated shine to your car using a gradient and mask technique. No need to even get your hands wet!

Step 1: Find a nice image that you want to work with - I am using a picture of my car, a 2001 Mercury Cougar C2. The resolution of the image you choose will affect the quality of the end result (but also the filesize).


Step 2:
Open a new document in Flash. I set my canvas size at 300 pixels wide and 200 pixels high. Go to File > Import > Import To Stage and choose your image. I named the layer CAR.

Create a new layer and call it GRADIENT. Using the The Rectangle Tool allows you to draw squares and rectangles.'); Activate();" onmouseout="deActivate()" alt="">Rectangle Tool draw a rectangle to the left of your image making sure it is taller than your image and that it has no border. The fill should be a linear white gradient with a left fill of 0% alpha, a middle fill of 100% alpha and right fill of 0% alpha. That basically means it's going from transparent to white to transparent. You should have the following so far:



Step 3:
Now let's create the areas where we want the shine to animate. Create a new layer and call it SHINE AREAS. Using the The pen tools let you draw smooth-edged paths.'); Activate();" onmouseout="deActivate()" alt="">Pen Tool I defined some areas. Make sure there is no border. The fill can be any color, but I used red because it's easier to see on my image. Here are my results:


Step 4:
On your timeline, insert keyframes at frame 30 for each of the 3 layers as seen below:




Step 5:
We want the gradient to move from left to right. It's position on the first keyframe is to the left. For the keyframe at 30 we want it's position to be all the way to the right. So click on the keyframe at 30 for the GRADIENT layer. Holding down the Shift key on your keyboard, move the gradient all the way over to the right.


Step 6: Now click on any frame between 1 and 30 on the GRADIENT layer. On the Properties panel at the bottom of your screen, there is an option for Tween. Set it to Shape. This will animate your gradient shape, making it move from left to right. You should see the following in your timeline to signify the tween is in place:


Step 7:
If you were to hit the ENTER key at this point, you would see that the white gradient will move from left to right. Cool... but not exactly what we were looking for yet! There's one final step to finish it off. So, right click on your SHINE AREAS layer and choose Mask:

So now, instead of the white gradient displaying fully across the image, it will only display within the shine areas that were created! Here is my final result. Enjoy!


No comments:

Post a Comment