In this tutorial we learn how to harness the shatter plugin along with some expressions and color correction to simulate a dramatic underground explosion that ripples and dislodges the ground.
Preview
RSS readers: click post title to view preview video at AETUTS.
Download
Preview1. Introduction
Hey everyone, this is my first tutorial on AETUTS but I can promise you that it will be a useful one. Today we're going to be learning three things: How to use the Shatter Effect for special effects, the Wiggle Expression, and Color Correction.

Requirements:
- Photoshop
- After Effects (7, CS3, or CS4)
2. Picking Your Image

So what's the first thing that we need to do? We need to get an image. The one I chose is an empty desert with a road leading to the horizon line. This is ideal for the earthquake effect we will be creating. I found mine on www.sxc.hu but you can use almost any image that has a road leading to a horizon line (a picture of Broadway in NYC for example).
3. Stepping into After Effects
Open After Effects and create a New Project File > New Project and double click inside the empty space where your imported files would normally be to pull up the import menu. Navigate to the picture you've chosen make new project. Instead of creating a new composition the normal way, drag the icon of your imported file over the composition icon at the bottom of the create a new composition box to create a new composition the size of your image.

4. Setting up the Comp
Now why did we make such a large composition? (My image is 630px x 800px). Well that's because we're going to need a composition larger than the final render size to animate it properly. This will make more sense later. Go to Composition > Composition Settings (CTRL + K / CMD + K) and set the length to 10 seconds.

5. Setting up the Timeline
Make a duplicate layer from your image. Select the layer and press CTRL + D or CMD + D to expedite the process and move your timeline selector about 7.5 seconds into the composition's timeline.

6. Setting up a Mask
It's time to make a mask! Select the top most layer and select the square tool/pen tool and mark off the road on your canvas so that it's the only part of the image that shows up. To see if this is working make sure to turn off the bottom layer.

7. Editing the Mask.
If you made a square mask, edit the points of the mask by double clicking the mask and selecting the corner points if you used the square tool so that it becomes the shape of the road and stop the mask where the road touches the horizon line. Add a mask feather while your at it by selecting the layer with the mask and hitting the m key to bring up the drop down menu, to open up the mask feather section you need to click the little sideways arrow twice to bring up all the mask options which has mask feather, mask size, etc. Set the feather to about 111px. You'll probably have to adjust this later so any amount is fine for now.

8. Shatter Time.
Onto fun steps, it's Shatter time! I'm going to divide the shatter effect into two parts so I can explain what I'm doing in detail: Forces & Physics. So select the top most layer and go to Effects > Simulation > SHATTER. It will put your composition to look like a wireframe image. Don't worry, that's a good thing. After Effects offers the wireframe preview because it's a RAM intensive rendering process so it's easier to preview the effect this way.

9. Shatter Shape.
Select the drop down menu for SHAPE and change the pattern to glass , change the Repetitions to 78. Repetitions is the number of breaks in the glass. The more repetitions the finer the glass pieces that actually shatter. Less repetitions, the larger the pieces. Leave the Direction (where the shatter goes), Origin (Where the shatter starts), and extrusion depth (thickness of the shatter pieces) alone for now.

10. Shatter Forces.
Open up the drop down menu for Force 1 . Now notice in the final product video, the shatter starts at the bottom of our screen. So lets select position by clicking the little crosshair next to the word and place it at the bottom center of your composition. There's no need to set the keyframe.

11. More Shatter Forces.
Click the keyframe button (the little stopwatch) next RADIUS and then go back in your timeline to about 2.25 seconds and hit the keyframe button again, but this time change the radius from it's default size to 0.00 Now if you scrub through your timeline it should look like it's exploding. Go to 10 seconds in your timeline and change the radius to 1.20. Lastly, change the depth to .60

12. Shatter Physics
Physics Time! Go down to the physics tab and use the settings in the screenshot. Rotation speed = .20, leave tumble axis set to none , set your randomness to 1.00 and leave viscosity at 1.00. Set the Mass Variance to 30%.

13. More Shatter Physics.
Gravity time. We're still in the physics tab but gravity deserves its own explanation. Go back to 7.5 seconds into your timeline and change the gravity to 10(max) and hit the keyframe button. Go to the end of your timeline and set the gravity to 0.00(minimum). You can do a quick render to see what it looks like so far. How does gravity work? Well 0 means there is no gravity which means things will float to the top of your screen indefinitely, and 50 means that things will fall indefinitely. We have it going from 50 - 0 to make it look like the shatter effect is moving up your screen. I had to adjust the number of repetitions to 48 to make it look less repetitive. I also changed the extrusion depth to .5 to give the shattered pieces a little more depth.

14. Image Color Levels.
Press CTRL+D on the top level layer and then select the middle layer (your original desert layer with the shatter effect on it) and delete the shatter effect. Then go to Effect > Color Correction > Levels an change the Input Black to 82.0. this will give the dirt floor beneath your shatter effect a different color so you can tell there's something underneath it.

15. First Render
Export your composition. Go to Composition > Add to Render Queue. Select lossless and change the format to Quicktime Movie and click format options and then change the render codec to .H264. Make sure audio output is unchecked and hit okay and render.

16. Setting up the New Comp.
Import your newly exported quicktime movie back into after effects and drag it onto the composition icon to turn it into its own composition. Open up the composition settings again and select NTSC as the preset and hit okay.

17. Color Correction - Blurring.
Hardcore color correction time. Duplicate the layer and change the blending mode to Multiply then go to Effects > Blur & Sharpen > Gaussian Blur and change it to 6.6

18. Color Correction - Tint.
Duplicate the layer one last time and go to Effect > Color Correction >Tint. Map the black to FFB400 and map the white to FFDAA6 .

19. Final Animation.
Select all the layers and move them down so that the sky is touching the top of the composition. Go to the end of your timeline and hit the p key on your keyboard to pull put each layers position and add a keyframe by hitting the stopwatch keyframe button (this will add keyframes for all layers). Go back to the beginning of your timeline and move all three layers up so that the bottom of the image is touching the bottom of the composition canvas. Any changes will automatically set keyframes for you. If you scroll through your timeline it should look as though the image is moving up the screen from the bottom of the picture to the top.
20. Fixing Our Sky's Tint.
Select the top most layer and add a mask using the pen tool and draw around the sky so that your TINT effect only applies to that area. And add mask feather of 50 pixels and render out the entire scene.

21. Conclusion Step - Expressions.
Onto the final steps. Repeat step 16 and select the only layer on your timeline and hit the p key to bring up its position. Hold the alt key and click on the keyframe icon(stopwatch) and a weird input field will come up. This is the expression field where you can type code and get After Effects to do all kinds of weird stuff. In the expression box, type wiggle (10,3,10) without the quotes and click outside of the box. If your screen doesn't show a render, hit the caps-lock key. Viola! Play around with the three numbers in the code to get the desired effect you need. You might have to shrink the composition size so that no black area shows. Render out your scene and you now have your own animated earthquake made from the shatter effecspamt. Hope you enjoyed the tutorial!

Plus Members
Source Files, Bonus Tutorials and
More for $9 a month for all Tuts+
sites in one subscription.

















User Comments
( ADD YOURS )Nick February 18th
Nice idea, but lacks any perspective which ruins the believability unfortunately. Thanks for the effort, though.
( )himangshu February 18th
I am not so done with expressions and scripts
( )please if u include a expansive tuts on it…….thanks
Modisana February 18th
SCREENCASTS RULE!
( )Bram Van der Sype February 18th
I’m loving the effect, it starts off good, but it seems to end a little to abrupt to look really realistic…
( )Fred McCoy February 18th
The reason it ends so abruptly is more do to my computer/rendering process rather than what you see. The tutorial is to just give you a basis of what you could do. I thought that a shorter final product which expressed all of the techniques would have been more useful on something like AETuts. I would hope that you choose better perspective shots to make it more believable when using my concept. =p.
( )Anthony Alexander June 6th
What he meant was, “Where’s the link to the project file?” Lazy bums, they even beg in MMORPGs
( )Brad Frost February 18th
this will be perfect for my lifelong passion to remake “Tremors”
( )heycameraman February 18th
tut is great…thanks for the hard work.
( )Shane Nassiri February 18th
Thanks for your tut. I like how you clearly label the learning objectives in the first paragraph. Hopefully readers will understand that the purpose of these tuts is to teach techniques they can apply to their own work.
You don’t have to be making an underground explosion for you to learn something from this tutorial.
( )Billy February 18th
Why wouldn’t the land around the road crack too? Just not a believable effect as presented. However, it is a decent tutorial for how the shatter effect works. Just would have liked to see it used in a little more believeable way. Something like this:
http://www.layersmagazine.com/shattering-glass-with-adobe-after-effects.html
Thanks for taking the time, though, to put this up. Maybe what you did can be adapted somehow?
( )Fred McCoy February 18th
The whole point is to adapt it to whatever you want to use it for. I would hope that anyone reading this tries to get creative with what shatter can do beyond obviously: breaking glass like in your tutorial link. It’s to get you thinking outside of the box.
( )Parrudinho (BRASIL) February 18th
Muito legal o tuto vlw mesmo how
( )dimitri February 18th
thats pretty bad…
( )mcnosh February 18th
Fred,
( )Great job and thanks for the tut, alot of these guys are giving bad feed back are missing the whole point of this forum. Take the tech and apply your own idea’s to AE….
sara November 11th
ya your so right
you dont have to do egsactly that use it for what you want its your video you do it how you want
hes showing you how creative shatter effect may be used it wasnt sasplastue be realistic he was showing you how it can be used you can make it realistic or opoisite of real it dosnt really matter………
The effect shatter is AWSOME!!!!!!
( )Diego SA February 18th
Wow! Fantastic!
( )Looking this make me wanna learn AE…
Nice tut!
Billy February 19th
the effects was ok but the sound the crack made was poor
( )DKumar M. February 19th
**/*****
( )Maor Hazan February 19th
Oh that’s really awesome! Thanks!
( )John C. February 19th
that was actually quite bad. this doesn’t even look remotely believable. in my opinion a tutorial like this should concentrate on how to create this effect so that it looks realistic and convincing. almost anyone can play around with the shatter effect to distort a still image in a similar way you did, but when your’re using actually moving footage it easily gets A LOT more complicated and in those cases there is hardly anything anyone can adopt from this tutorial. what I’d like to see: more professional tutorials with dedication and attention to detail, because those are the factors that sell a final product or not.
( )Michal J. February 19th
Final effect is not good enough but I fully understand the point. This is idea giving tutorial.
Regards to the author.
( )Squirrelmonkey41 February 20th
I do have to say that that was pretty lame, and well pretty crappy too.
( )joe23521 February 20th
Please give constructive suggestions instead of ripping on the tutorial and its author.
( )Adam February 20th
Thanks Fred! Love the original idea for using the shatter effect.
BTW, don’t mind the children and their immature comments.
( )gamsmaster February 21st
looks gamsy
( )herozombie February 21st
Fred, man your tutorial rocks!
( )Oh, BTW, pl. ignore those idiots (with negative critics) cuz they had miserable childhood (LOL).
morsji February 21st
i can make a tutorial on how to make the original italian pizza…
( )The turolias arep ointing on that quality direction
Diego February 21st
Great tutorial!!!
I prefer write tutorial that video tutorial….so this is perfect…
Thank you for sharing your knowledge.
Diego
( )Jim February 24th
Fred, I liked your tutorial and the way you presented it. I still feel that many of the negative comments are due to the new influx of “hobbyists” to the world of video production.
I happen to like being shown how to use some of the more esoteric plug-ins available to AE users. I may never apply it, but you have given me a great STARTING POINT if I decide to. Thank-you.
( )jeroen February 27th
I’m sorry, the effect looks rather fake to me.
( )xin March 11th
hao de
( )Kowshik March 14th
your tutorial rocks. many thanks Fred .how do i get rid of those wireframes after adding the effects(before first render). PLEASE REPLY SOON
( )sondrumer September 20th
I was thinking of applying that effect in combination with photoshop’s focal point.
( )Navarro Parker March 23rd
Yeahhhhh… not super great, sorry. Kinda what I expect to see on Sci-Fi channel original movies.
I like everything leading up to the shatter effect.
I really like the smoke? lens flare? on the side of the road when it pans up. Is that in the original footage?
( )Coffin Dodger March 31st
Nicely done. very good concepts to build on.
( )Kirby April 1st
All of you little people with your negativity really make me sick. Why don’t you go do your own tuts? Oh, that’s right, because you don’t know how. I thought it was good man. Keep it up.
( )Navarro Parker April 1st
So only a Chicken can tell if an egg is rotten?
( )vic April 5th
jesus h.christ. it’s obvious that we look at tutorials because we lack in certain areas and can utilize the long hours of work these people have put in to up our own skill sets, perhaps even with the chance at monetary gain. so how do ppl have the damn balls to say anything negative? go do your own tutorial. and shut the hell up. like my momma used to say “beggars can’t be choosers”. GOOD WORK MAN! keep it up!
( )neaen April 16th
it’s not good lookin’, you know, i think if you can use Vanishpoint it’s better for real lookin’, anyway thank’s
( )CgBaran Tuts April 22nd
Fantastic work thanks
( )steve August 25th
Fred, i think you’ve done a great job
To all you whiners, it up to you to THINK and add your own skills to it. (like you’ve got any)
And the the complainers who want video all the time, how about you learn to READ.
Again I think you Fred, have done a great job, dont be put off doing more, there are plenty of people here that actually learn an extend what you done.
( )